Plesk for Linux
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
Question
Why there are two locations for domain logs: /var/www/vhosts/system/example.com/logs
and /var/www/vhosts/example.com/logs
?
Answer
The directory /var/www/vhosts/system/example.com/
contains domain configuration, its log files, statistics data and protected directories.
By design, this directory is not accessible in Plesk interface.
Therefore, to allow accessing the domain logs from Plesk interface, the hard links (the files that have the same inode) to the files in the directory /var/www/vhosts/system/example.com/logs
are created in the directory /var/www/vhosts/example.com/logs
.
Comments
3 comments
What creates the hard links? I have logs being rotated within
/var/www/vhosts/system/example.com/logs daily, but the last rotated log in /var/www/vhosts/example.com/logs is from 20 days ago. It seems that logrotate is working properly, but the hard links are not being created, and thus I cannot see the recently rotated logs from the Plesk interface (since the ones in
/var/www/vhosts/example.com/logs
are old).@John Kennedy, it is quite strange behavior, please create a ticket to our support department so we could check the issue:
https://support.plesk.com/hc/en-us/requests/new
To the best of my understanding, the above SSH CLI should re create the correct links.
Please sign in to leave a comment.