• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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