PHP with FPM on Gentoo

Silvio Siefke siefke_listen at web.de
Mon Apr 2 22:13:23 UTC 2012


Hello,

i try run Nginx with PHP-FPM under Gentoo. Under my FreeBSD Rootserver 
it run without any problems but under Gentoo want not run. 

nginx.conf > http://nopaste.info/72a40e9c5e.html
php-fpm.conf > http://nopaste.info/94a9de62d5.html
emerge --info php nginx > http://nopaste.info/225b12e106.html

The last change in config is:

server {
listen 80 default;
server_name localhost;
access_log /var/log/nginx/localhost.access_log main;
error_log /var/log/nginx/localhost.error_log debug;
root /var/www/localhost/htdocs;
location ~ (.*)\.php$ {
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000; 
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/localhost/htdocs$fastcgi_script_name;
}        
}

The last Logs which i has:

<acces_log>
192.168.0.20 - - [02/Apr/2012:17:59:05 +0200] "GET / HTTP/1.1" 200 633 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19" "-"
192.168.0.20 - - [02/Apr/2012:17:59:05 +0200] "GET /favicon.ico HTTP/1.1" 200 1650 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19" "-"
192.168.0.20 - - [02/Apr/2012:17:59:21 +0200] "GET /info.php HTTP/1.1" 200 289 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19" "0.47"
192.168.0.20 - - [02/Apr/2012:17:59:24 +0200] "-" 400 0 "-" "-" "-"
</acces_log>

<error_log>
2012/04/02 17:59:24 [info] 21288#0: *4 client closed prematurely connection while reading client request line, client: 192.168.0.20, server: localhost
</error_log>

I really not understand where is my mistake. Has someone a idea?


Regards
Silvio



More information about the nginx mailing list