• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved error_log not in expected but unknown location

Sebastian

New Pleskian
When creating new subdomains, the log folder
/var/www/vhosts/domain.com/logs/subdomain.domain.com
is created, but is missing the PHP error_log file, so we can't tail anything.

Going to the Plesk's log file browser
https://domain.com:8443/smb/log-file/browser/id/37
there are no errors, while there should be some (php error_log('test');)

When managing log files with
https://domain.com:8443/smb/log-file/list/id/37
the path is shown as logs/error_log, like the sudomains with proper working error_log files.

When opening
https://domain.com:8443/smb/log-file/view/id/37?filename=error_log
the expected errors are there(!), so they are written somewhere (else).

Questions:
  1. Where are errors written to, where is the real used error_log file?
  2. What causes this behavior?
  3. Can I change/repair it to default?

Thanks a lot in advance!
 
Meanwhile I found the location:
/var/www/vhosts/system/subdomain.domain.com/logs/error_log
So question 1 is answered while 2 & 3 are still open.
 
The directory /var/www/vhosts/<domain>/logs is a hardlink to /var/www/vhosts/system/<domain>/logs
The hardlinks are only updated after the statistics run in the early morning hours, so a newly created subdomain will only have the Apache logs in /var/www/vhosts/<domain>/logs after the first statistics run.
 
Back
Top