Gilles Ganault
2010-07-15 11:03:59 UTC
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.
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.