|  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: Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.3 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2010-08-24 23:35 UTC]
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.user = nobody = 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


fpm-stderr.v1.patch (last revision 2010-08-24 22:21 UTC by

Add a Patch

Pull Requests

Add a Pull Request


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

Patch Name: fpm-stderr.v1.patch
Revision:   1282688485
 [2010-08-25 00:21 UTC]
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: fat
 [2010-11-11 23:48 UTC]
Automatic comment from SVN on behalf of fat
Log: - Fixed bug #52693 (configuration file errors are not logged to stderr)
 [2010-11-11 23:53 UTC]
-Status: Analyzed +Status: Closed
 [2010-11-11 23:53 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 14:01:32 2024 UTC