Bug #52693 [Opn->Ana]: configuration file errors are not logged to stderr
| From: | fat@php.net | Date: | Tue, 24 Aug 2010 22:21:45 +0000 |
| Subject: | Bug #52693 [Opn->Ana]: configuration file errors are not logged to stderr | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153768@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52693&edit=1
ID: 52693
Updated by: fat@php.net
Reported by: fat@php.net
Summary: configuration file errors are not logged to stderr
-Status: Open
+Status: Analyzed
Type: Bug
Package: FPM related
Operating System: *
PHP Version: 5.3.3
-Assigned To:
+Assigned To: fat
Block user comment: N
Previous Comments:
------------------------------------------------------------------------
[2010-08-25 00:21:26] 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-24 23:35:40] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52693&edit=1