Edit report at https://bugs.php.net/bug.php?id=69850&edit=1
ID: 69850
Comment by: kyra at existing dot me
Reported by: pascal007 at gmx dot ch
Summary: fpm don't receive a script name
Status: Open
Type: Bug
Package: FPM related
Operating System: Debian 7.8
PHP Version: 7.0.0alpha1
Block user comment: N
Private report: N
New Comment:
I'm also experiencing the same issue with PHP7. I loaded a single pool and made a single PHP
request to a file with nothing but phpinfo() and the request works.
However, my error log then begins to fill up. The interesting part is that it maxes out the children
of 25, which such a request should not do.
Here is a copy of my php-fpm.log
- http://pastebin.com/raw.php?i=J2EHcMgs
Previous Comments:
------------------------------------------------------------------------
[2015-06-20 08:30:50] pascal007 at gmx dot ch
Seems to be related to this one: https://bugs.php.net/bug.php?id=69875
------------------------------------------------------------------------
[2015-06-17 07:14:11] pascal007 at gmx dot ch
The slow log stays empty with:
request_slowlog_timeout = 5s
slowlog = /var/log/$pool.log.slow
------------------------------------------------------------------------
[2015-06-17 02:38:00] laruence@php.net
what about slow-log? maybe have a try with it?
------------------------------------------------------------------------
[2015-06-16 16:16:03] pascal007 at gmx dot ch
Description:
------------
When I use php-fpm together with the PHP7 alpha1 on an nginx server I get a 502 Bad Gateway from
nginx.
In the nginx log I see this error:
[error] 1889#0: *4 recv() failed (104: Connection reset by peer) while reading response header from
upstream, client: xxx.xxx.xxx.20, server: localhost, request: "GET /info.php HTTP/1.1",
upstream: "fastcgi://unix:/var/run/php70-fpm.sock:", host: "xxx.xxx.xxx.21"
If I look into the log of the php-fpm service I see this:
WARNING: pid 2582, fpm_request_check_timed_out(), line 277: [pool www0] child 2813, script
'' (request: " ") execution timed out (120.018160 sec), terminating
If I run the same configuration with PHP 5.5.x and 5.6.x everything works fine. Just with the 7.0
alpha 1 this problem happens. PHP 7 command line SAPI works fine.
Test script:
---------------
Nginx fastcgi_params I use:
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS $https;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
Expected result:
----------------
php-fpm should get a script name to execute.
Actual result:
--------------
php-fpm does not get a script name to execute and times out.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69850&edit=1