Page 1 of 1

error logs not accessible to user

Posted: Tue Oct 17, 2017 11:34 am
by xguntis
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).

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
When logged as root there are to symlinks that point to /var/log/apache2/domains

Re: error logs not accessible to user

Posted: Sun Dec 03, 2017 10:15 am
by Fchen
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

Re: error logs not accessible to user

Posted: Sun Dec 03, 2017 8:44 pm
by mehargags
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"

Re: error logs not accessible to user

Posted: Mon Dec 04, 2017 11:31 am
by xguntis
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.

Image