Welcome! Log In Create A New Profile

Advanced

Re: nginx + php-fpm = file not found

Francis Daly
December 15, 2014 04:02AM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx + php-fpm = file not found

khav December 12, 2014 02:17PM

Re: nginx + php-fpm = file not found

Jader H. Silva December 12, 2014 04:10PM

Re: nginx + php-fpm = file not found

khav December 13, 2014 04:32AM

Re: nginx + php-fpm = file not found

khav December 14, 2014 11:20PM

Re: nginx + php-fpm = file not found

Francis Daly December 15, 2014 04:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready