error logs not accessible to user
error logs not accessible to user
When i am logged in as user, the error logs in ~/web/domain.tld/logs is not accessible. How the user is supposed to see his error log. I am specifically interested in 500 errors that cannot be seen elsewhere (correct me if i am wrong).
When logged as root there are to symlinks that point to /var/log/apache2/domains
Code: Select all
demo@prom01:~/web/domain.tld$ ls logs/*
ls: cannot access logs/domain.tld.error.log: Permission denied
ls: cannot access logs/domain.tld.log: Permission denied
Re: error logs not accessible to user
I have exactly the same error with nginx, the user will see the symlink but can't open or download it, they will receive
Code: Select all
Error: invalid source path /home/user/web/example.com/logs/example.com.error.log
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: error logs not accessible to user
Its because default ProFTPd doesn't follow symlinks for FTP. I don't remember but there is a specific setting you need to alter.
Alternatively, you can also set log file location in the Apache Server block and put the log inside public_html, do know that the setting will be lost if you "rebuild web"
Alternatively, you can also set log file location in the Apache Server block and put the log inside public_html, do know that the setting will be lost if you "rebuild web"
Re: error logs not accessible to user
I have found where i can see the logs.
Log in as user, got to WEB tab. Hover over the web site and then click on VIEW LOGS.
Log in as user, got to WEB tab. Hover over the web site and then click on VIEW LOGS.