nginx on CentOS6 with PHP

Hello,

I loosely followed http://library.linode.com/web-servers/n … i/centos-5">http://library.linode.com/web-servers/nginx/php-fastcgi/centos-5 for install nginx with PHP on CentOS 6 (and also http://www.lifelinux.com/how-to-install … 6-via-yum/">http://www.lifelinux.com/how-to-install-nginx-and-php-fpm-on-centos-6-via-yum/). However, PHP pages are failing to load. A simple phpinfo() page is giving a 404. The error logs do not report any errors but the access_log shows that I am indeed hitting the right site/directory.

I know it's kind of a vague question… I am just messing around with nginx and seeing if it's right for me. Nothing important is on the server so I can rebuild it if needed.

If it helps:

[root@li438-59 ~]# php -v

PHP 5.3.10 (cli) (built: Feb 4 2012 07:36:51)

Copyright © 1997-2012 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

[root@li438-59 ~]# nginx -v

nginx version: nginx/1.0.14

1 Reply

Could you post your nginx config? That would help with spotting the issue.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct