NGINX Permission denied in error.log


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”

  1. 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.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert