Bug #69850 [Opn]: fpm don't receive a script name

From: Date: Sat, 20 Jun 2015 08:30:51 +0000
Subject: Bug #69850 [Opn]: fpm don't receive a script name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193712@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69850&edit=1

 ID:                 69850
 User updated by:    pascal007 at gmx dot ch
 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:

Seems to be related to this one: https://bugs.php.net/bug.php?id=69875


Previous Comments:
------------------------------------------------------------------------
[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


Thread (11 messages)

« previous php.bugs (#193712) next »