[php-src] Issue #14037: PHP-FPM `ping.path` and `ping.response` config vars are ignored.

From: Date: Tue, 23 Apr 2024 17:38:56 +0000
Subject: [php-src] Issue #14037: PHP-FPM `ping.path` and `ping.response` config vars are ignored.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246807@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14037 Author: Wilhansen ### Description In the conf of PHP-FPM we have the following: ```ini ; The ping URI to call the monitoring page of FPM. If this value is not set, no ; URI will be recognized as a ping page. This could be used to test from outside ; that FPM is alive and responding, or to ; - create a graph of FPM availability (rrd or such); ; - remove a server from a group if it is not responding (load balancing); ; - trigger alerts for the operating team (24/7). ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set ping.path = /ping ; This directive may be used to customize the response of a ping request. The ; response is formatted as text/plain with a 200 response code. ; Default Value: pong ping.response = pong ``` Despite following the comments and setting the values, when trying to connect to the service, we get a 404. Using the cgi-fcgi we can test using the command: SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000 Resulted in this output: ``` Primary script unknownStatus: 404 Not Found Content-type: text/html; charset=UTF-8 File not found. ``` But I expected this output instead: ``` X-Powered-By: PHP/8.2.7-dev Content-type: text/plain;charset=UTF-8 Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate, max-age=0 pong ``` ### PHP Version PHP 8.2.7 ### Operating System Debian 12

« previous php.bugs (#246807) next »