• 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.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

apache logs duplicated in /var/www/vhosts/*/logs and in /var/www/vhost/system/*/logs

Miguel_Tellería

Basic Pleskian
Dear all,

I see in my Plesk installations the following pattern for apache logs in most (but not all) susbscriptions.

For a domain.tld subscription, there are:

/var/www/vhosts/domain.tld/logs/access_log (this one is sometime missing)
/var/www/vhosts/domain.tld/logs/error_log
/var/www/vhosts/system/domain.tld/logs/access_log
/var/www/vhosts/system/domain.tld/logs/error_log

it seems that the ones under /var/www/vhosts/system are opened by apache (according to lsof) although I am not 100% sure.

What's the reason for the duplicity?

Why is this not present in all subscriptions?. In particular, subscriptions migrated with PMM from other server don't have the first access_log present.

Where is this configured?

Thanks in advance for your time.
 
Well, all these logs are hardlinks. Therefore you shouldn't worry about duplicates. Logs from /var/www/vhosts/system/domain.tld/logs/ are written by Apache and logs from /var/www/vhosts/domain.tld/logs/ are left for backward compatibility with old Plesk versions where ftp users can read these logs from their webspaces.
 
Thanks for the reply IgorG.

Besides backward compatibility I find them handy for our daily inspections from shell. Is it threfore safe if we manually create the hardlinks when they are missing?
 
Back
Top