Welcome! Log In Create A New Profile

Advanced

[newbie] Two configuration issues with PHP5-FPM

Gilles Ganault
July 15, 2010 07:12AM
Hello,

Things are a bit more clear this morning, but I'm still unable to
serve PHP5 scripts through Nginx + PHP5-FPM (works OK with "php-cgi
-b") on Ubuntu 10.04.

Using the "default" file mentioned here...

www.howtoforge.com/installing-nginx-with-php-5.3-and-php-fpm-on-ubuntu-lucid-lynx-10.04-without-compiling-anything

.... and the usual index.php (owned by www-data.www-data) to run "<?php
phpinfo(); ?>", I get two errors:

1. http://192.168.0.8/ -> "403 Forbidden":

"directory index of "/var/www/" is forbidden, client: 192.168.0.1,
server: localhost, request: "GET / HTTP/1.1", host: "192.168.0.8""

So, I tried being specific:

2. http://192.168.0.8/index.php: Empty screen.

Only this in error.log:

2010/07/15 12:50:36 [error] 1146#0: *21 open() "/var/www/favicon.ico"
failed (2: No such file or directory), client: 192.168.0.1, server:
localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.0.8"

I get this in /var/log/nginx/localhost.access.log :

192.168.0.1 - - [15/Jul/2010:12:52:15 +0200] "GET /index.php HTTP/1.1"
404 31 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/532.9 (KHTML, like Gecko) Iron/4.0.280.0 Chrome/4.0.280.0
Safari/532.9"

(notice error 404)

To check if it could be due to the fact that I use the server's IP
address (192.168.0.8) instead of "localhost" to connect to it from a
Windows host, I tried this:

1. vi /etc/nginx/sites-available/default:
server {
listen 80;
#ME server_name localhost;
server_name 192.168.0.8;
2. /etc/init.d/nginx restart

http://192.168.0.8/index.php = Still empty page :-/

Any idea what's wrong with my config?

Thank you for any hint.


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

[newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 07:12AM

Re: [newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 07:20AM

Re: [newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 10:20AM

Re: [newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 12:44PM

Re: [newbie] Two configuration issues with PHP5-FPM

brianmercer July 15, 2010 02:01PM

Re: [newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 08:22PM

Re: [newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 08:30PM

Re: [newbie] Two configuration issues with PHP5-FPM

Gilles Ganault July 15, 2010 09:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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