configuration file errors are not logged to stderr
| 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 commits
[2010-08-25 00:21 UTC] fat@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: fat
[2010-11-11 23:53 UTC] fat@php.net
-Status: Analyzed +Status: Closed
[2010-11-11 23:53 UTC] fat@php.net