Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

error logs not accessible to user

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
xguntis
Posts: 30
Joined: Sat Mar 12, 2016 12:42 pm

error logs not accessible to user
  • Quote

Post by xguntis » Tue Oct 17, 2017 11:34 am

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
Top

Fchen
Posts: 4
Joined: Mon Nov 20, 2017 10:35 pm

Re: error logs not accessible to user
  • Quote

Post by Fchen » Sun Dec 03, 2017 10:15 am

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
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: error logs not accessible to user
  • Quote

Post by mehargags » Sun Dec 03, 2017 8:44 pm

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"
Top

xguntis
Posts: 30
Joined: Sat Mar 12, 2016 12:42 pm

Re: error logs not accessible to user
  • Quote

Post by xguntis » Mon Dec 04, 2017 11:31 am

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
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password