From:             fat
Operating system: *
PHP version:      5.3.3
Package:          FPM related
Bug Type:         Bug
Bug description:configuration file errors are not logged to stderr

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 bug report at http://bugs.php.net/bug.php?id=52693&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52693&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52693&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52693&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52693&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52693&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52693&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52693&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52693&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52693&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52693&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52693&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52693&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52693&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52693&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52693&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52693&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52693&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52693&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52693&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52693&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52693&r=mysqlcfg

Reply via email to