php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52693 configuration file errors are not logged to stderr
Submitted: 2010-08-24 23:35 UTC Modified: 2010-11-11 23:53 UTC
From: fat@php.net Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.3 OS: *
Private report: No CVE-ID: None
 [2010-08-24 23:35 UTC] fat@php.net
Description:
------------
When FPM is launched, if there is an error which prevents FPM from starting, 
nothing is written to stderr. Everyhting is logged to error_log only. 

Test script:
---------------
set a non sense value in php-fpm.conf:
listen=/tmp/php-fpm.sock
listen.user = nobody
listen.group = johndoe


Expected result:
----------------
root@wild:/LIBRE/dev/php-src/trunk# ./sapi/fpm/php-fpm

root@wild:/LIBRE/dev/php-src/trunk# ps aux | grep php-fpm
root      5473  0.0  0.0   2420   816 pts/3    S+   23:29   0:00 grep php-fpm

root@wild:/LIBRE/dev/php-src/trunk# tail -n 1 /tmp/php-fpm/php-fpm.log
Aug 24 23:29:35.774255 [ERROR] pid 5471, fpm_unix_resolve_socket_premissions(), 
line 61: [pool www_chroot] cannot get gid for group 'johndoe': Success (0)


Actual result:
--------------
root@wild:/LIBRE/dev/php-src/trunk# ./sapi/fpm/php-fpm

root@wild:/LIBRE/dev/php-src/trunk# ps ax | grep php-fpm
 5579 ?        Ss     0:00 ./sapi/fpm/php-fpm -p /tmp/php-fpm
 5580 ?        S      0:00 ./sapi/fpm/php-fpm -p /tmp/php-fpm
 5581 ?        S      0:00 ./sapi/fpm/php-fpm -p /tmp/php-fpm
 5582 ?        S      0:00 ./sapi/fpm/php-fpm -p /tmp/php-fpm

root@wild:/LIBRE/dev/php-src/trunk# tail -n 1 /tmp/php-fpm/php-fpm.log
Aug 24 23:31:54.094551 [NOTICE] pid 5579, fpm_event_loop(), line 111: ready to 
handle connections

Patches

fpm-stderr.v1.patch (last revision 2010-08-24 22:21 UTC by fat@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-25 00:21 UTC] fat@php.net
The following patch has been added/updated:

Patch Name: fpm-stderr.v1.patch
Revision:   1282688485
URL:        http://bugs.php.net/patch-display.php?bug=52693&patch=fpm-stderr.v1.patch&revision=1282688485
 [2010-08-25 00:21 UTC] fat@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: fat
 [2010-11-11 23:48 UTC] fat@php.net
Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=305282
Log: - Fixed bug #52693 (configuration file errors are not logged to stderr)
 [2010-11-11 23:53 UTC] fat@php.net
-Status: Analyzed +Status: Closed
 [2010-11-11 23:53 UTC] fat@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 13:01:27 2024 UTC