Looking at the webervers error logs, i´ve found a lot of entries in one of them in an ISPConfig 3 environment:
[crit] 26595#0: *28425 open() "/var/www/site/web/" failed (13: Permission denied), client: xx.xx.xx.xx, server: host.tld, request: "GET / HTTP/1.1", host: "www.host.tld"
I spent some minutes to figure it out. In my case it was a permission error on website root folder (permissions were set to 711).
A simple command „chmod 751 web“ fixes my problem.
See also: http://nicholasorr.com/blog/2008/07/22/nginx-engine-x-what-a-pain-in-the-bum/
4 Antworten zu “NGINX Permission denied in error.log”
It helped me thanks a Lot. I changed them to 644 and 755 , both worked either.
Changing it to 755 is a bad idea, it would work but its not ideal for a production environment. You probably just need to chown the files in question to nginx:nginx or whichever use is running nginx while leaving the files 644.
Or 640, I don’t remember. But definitely not 755.
I’ve updated my post, because it happend in an ISPConfig 3 environment, where multiple vHost’s are running. I’ve checked this issue on a newer environment and it still persist.
ISPConfig 3 Forum: http://www.howtoforge.com/forums/forumdisplay.php?f=23
Same Problem here: http://www.howtoforge.com/forums/showthread.php?t=65692
Although the permission error is written into error.log (with permission 711 on site root), the site is still running fine. I’ll check it deeper on next maintenance.