I know this is a common question, but I found no discussion matching exactly with my case.
nginx error log shows:
FastCGI sent in stderr: "Unable to open primary script: /usr/share/nginx/drupal7/index.php
But:
this path is correct, this is the root of my website
www-data
has permission to access it (if I dosu www-data
thencat /usr/share/nginx/drupal7/index.php
the file is displayed).both nginx root AND
fpm/pool.d/myserver.conf
chroot point to the same folder:/usr/share/nginx/drupal7
www-data
user and group have660
access to this same folder intopool.d/myserver.conf
ps -u www-data
shows that it owns nginx and php5-fpm processesI do not have SElinux installed (as some discussions say it could be the problem)
So why can the www-data
user can access my index.php
but not FastCGI?
Why does FastCGI try the correct path, but then say it doesn't exist?