nginx php-fpm trouble

Posted by Patrick on Server Fault See other posts from Server Fault or by Patrick
Published on 2010-04-09T07:14:53Z Indexed on 2010/04/09 7:23 UTC
Read the original article Hit count: 265

Filed under:

Hello, we're using php-fpm and have trouble getting the scripts to work if we change the 'root' value in nginx.conf.

location ~ \.php$ {
root /usr/share/nginx/html ;

If we change that root to point to other directory, even if it's /usr/share/nginx/html/crap, it wouldn't work. The directory exists of course. It's like it can read the file in that directory, but not execute it. I've checked all file permissions. Anyone has any idea?

© Server Fault or respective owner

Related posts about nginx