Edit report at http://bugs.php.net/bug.php?id=52693&edit=1

 ID:                 52693
 Updated by:         f...@php.net
 Reported by:        f...@php.net
 Summary:            configuration file errors are not logged to stderr
-Status:             Analyzed
+Status:             Closed
 Type:               Bug
 Package:            FPM related
 Operating System:   *
 PHP Version:        5.3.3
 Assigned To:        fat
 Block user comment: N

 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------
[2010-11-11 23:48:48] f...@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-08-25 00:21:26] f...@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-24 23:35:40] f...@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:
----------------
r...@wild:/LIBRE/dev/php-src/trunk# ./sapi/fpm/php-fpm



r...@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



r...@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:
--------------
r...@wild:/LIBRE/dev/php-src/trunk# ./sapi/fpm/php-fpm



r...@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



r...@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


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52693&edit=1

Reply via email to