nginx + php-fpm = file not found
Francis Daly
francis at daoine.org
Mon Dec 15 09:00:35 UTC 2014
On Sun, Dec 14, 2014 at 11:20:22PM -0500, khav wrote:
Hi there,
> mkdir -p /var/www/servergreek.com/public_html/www -worked
> mkdir -p /home/servergreek.com/public_html/www - didn't worked
>
> Is an extra step required when using directories outside /var/www ?
Your nginx server runs as once user/group. Your php server runs as
one user/group.
If you look at the output of each of
ls -ld /
ls -ld /var
ls -ld /var/www
ls -ld /var/www/servergreek.com
ls -ld /var/www/servergreek.com/public_html
ls -ld /var/www/servergreek.com/public_html/www
ls -ld /home
ls -ld /home/servergreek.com
ls -ld /home/servergreek.com/public_html
ls -ld /home/servergreek.com/public_html/www
are any of them different from the others? Particularly between the
"working" and "not working" set, and probably in the last of the ten
fields that probably have "drwx" as the first four.
If the user/group running nginx is unable to access a file, it will lead
to an error. If the user/group running php is unable to access a file,
it will lead to an error.
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list