Using Plesk with Apache and Nginx together on Centos.
Errors were being logged perfectly on;
/var/www/vhosts/example.com/logs/error_log
/var/www/vhosts/example.com/logs/proxy_error_log
I truncated the files by deleting and recreating them; now nothing is logged. File owner and the file permissions are all the same; but error logging has just stopped.
I check the other domains, they all perfectly work as supposed.
2
Answers
Actually web server logs are stored in
/var/www/vhosts/system/example.tld/logs/
.Log files in
/var/www/vhosts/example.tld/logs/
it’s not a files but hardlinks to files in/var/www/vhosts/system/example.tld/logs/
. Pay attention for same inode number 261064:when I’ve remove this file I’ve remove hardlink:
When I’ve create it again it will has own inode number(276777):
So to solve you issue you just need to remove file you have created and create hardlink to file in system/log:
the server probably still tries to write to the files you deleted. restart nginx and apache.