Unixery & daemon worship 🔥

It's a Unix system! I know this!

Fixing Nginx fastcgi permission issue

If you are getting error like

2014/08/19 14:57:59 [crit] 2275#0: *292 open() "/var/lib/nginx/fastcgi/9/01/0000000019" failed (13: Permission denied) while reading upstream, client:

you should check if the nginx user (here //apache//) has permissions to access these directories and may fix them:

chown apache /var/lib/nginx/
chown apache /var/lib/nginx/fastcgi/