Welcome! Log In Create A New Profile

Advanced

Re: PHP with FPM on Gentoo

April 03, 2012 04:02AM
Hi,

Do you actually get any content, apart from errors in nginx error_log? The message "client closed prematurely connection while reading client request line, client: ..." shouldn't be a problem itself.

"Some modern browsers tend to open 2 tcp connections to server from start, and if you are loading a single static file - one of them remains unused. The browser eventually closes it without sending any request, and this causes the above message in logs." - Maxim Dounin.

I can see from your access_log that requests are processed normally and responses are OK (code 200) for all your files including PHP files (request: /info.php).

You can also use sockets for fastcgi connections, but that's a matter of preference and probably won't solve your issue, which I do not fully understand yet.

shell:

mkdir -p /var/run/fastcgi/php-fpm.sock

php-fpm.conf:

;listen = 127.0.0.1:9000
;listen.allowed_clients = 127.0.0.1
listen = /var/run/fastcgi/php-fpm.sock
listen.owner = nginx
listen.group = nginx

nginx.conf:

location \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/fastcgi/php-fpm.sock;
}

Andrejs
Subject Author Posted

PHP with FPM on Gentoo

Silvio Siefke April 02, 2012 06:14PM

Re: PHP with FPM on Gentoo

locojohn April 03, 2012 04:02AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 03, 2012 06:48AM

Re: PHP with FPM on Gentoo

Rainer Duffner April 03, 2012 06:58AM

Re: PHP with FPM on Gentoo

locojohn April 03, 2012 06:59AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 03, 2012 07:02AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 03, 2012 05:40PM

Re: PHP with FPM on Gentoo

Silvio Siefke April 04, 2012 05:46AM

Re: PHP with FPM on Gentoo

locojohn April 04, 2012 07:46AM

Re: PHP with FPM on Gentoo

Silvio Siefke April 04, 2012 04:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready