TimReeves
Regular Pleskian
I've noticed that on most of my servers, /var/log/nginx/error.log accumulates error messages like this:
2015/06/01 04:13:45 [emerg] 28449#0: open() "/var/www/vhosts/system/DOMAIN/logs/proxy_access_log" failed (13: Permission denied)
This happens in the early hours of the morning, for most servers where the Nginx module is installed, once for each domain, and whether PHP-FPM package is installed or not. More specifically:
Something is a bit weird somewhere, howcome otherwise more or less identical servers have different log owners? Which is correct?
I rather suspect that the messages may stop if I added all "psa" groups to the nginx group in /etc/group, or made root the log owner. But I don't feel comfortable with the latter, and anyway the problem should be solved, not worked around.
Any help would be much appreciated!
Cheers, Tim
2015/06/01 04:13:45 [emerg] 28449#0: open() "/var/www/vhosts/system/DOMAIN/logs/proxy_access_log" failed (13: Permission denied)
This happens in the early hours of the morning, for most servers where the Nginx module is installed, once for each domain, and whether PHP-FPM package is installed or not. More specifically:
- At 2 Servers on Ubuntu 12.04.5 LTS / Plesk 12.0.18 Update #48 / Nginx + PHP-FPM
- At 1 Server on Ubuntu 14.04.2 LTS / Plesk 12.0.18 Update #48 / Nginx (no PHP-FPM)
- /var/www/vhosts/system/DOMAIN/logs = drwx------ psaadm root
- /var/www/vhosts/system/DOMAIN/logs/proxy_* = rw-r--r-- nginx root
Something is a bit weird somewhere, howcome otherwise more or less identical servers have different log owners? Which is correct?
I rather suspect that the messages may stop if I added all "psa" groups to the nginx group in /etc/group, or made root the log owner. But I don't feel comfortable with the latter, and anyway the problem should be solved, not worked around.
Any help would be much appreciated!
Cheers, Tim