Welcome! Log In Create A New Profile

Advanced

Re: nginx 1.0.3 with php-fpm, php report 404 error

May 26, 2011 11:44PM
On Fri, May 27, 2011 at 10:26 AM, baalchina <baalchina@gmail.com> wrote:
> Hi everyone
>
> I am using nginx 1.0.3 under CentOS 5.6, with php-fpm.
>
> nginx works fine with static file, such as html,txt. But not with php file.
>
> I wrote a phpinfo.php file in my webserver, my browser  and nginx log both
> report an 404 error.
>

did you set root parameter in location block (eg. location / { .. })
or in server block (server { ... })? You must set it in server block
if you want the location php to use the root or else it'll use default
root. Checking error log could also show you where nginx tried to find
the file.

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

nginx 1.0.3 with php-fpm, php report 404 error

baalchina May 26, 2011 11:28PM

Re: nginx 1.0.3 with php-fpm, php report 404 error

edogawaconan May 26, 2011 11:44PM

Re: nginx 1.0.3 with php-fpm, php report 404 error

任晓磊 May 26, 2011 11:56PM

Re: nginx 1.0.3 with php-fpm, php report 404 error

baalchina May 27, 2011 12:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
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