Bug #68591 [NEW]: Configuration test does not perform uid lookups

From: Date: Thu, 11 Dec 2014 13:57:29 +0000
Subject: Bug #68591 [NEW]: Configuration test does not perform uid lookups
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189014@lists.php.net to get a copy of this message
From: bruno dot premont at restena dot lu Operating system: Linux PHP version: 5.5.19 Package: FPM related Bug Type: Bug Bug description:Configuration test does not perform uid lookups Description: ------------ When calling php-fpm -y $configfile -t to check configuration file it reports success though php-fpm would fail to startup (or exit if sent SIGUSR2 to reload). In fpm error log I find the following error: [11-Dec-2014 14:34:59] NOTICE: Reloading in progress ... [11-Dec-2014 14:34:59] NOTICE: reloading: execvp("/usr/lib/php5.5/bin/php-fpm", {"/usr/lib/php5.5/bin/php-fpm", "-y", "/etc/php/fpm-php5.5/php-fpm.conf"}) [11-Dec-2014 14:34:59] ERROR: [pool site] cannot get uid for user 'siteuser' [11-Dec-2014 14:34:59] ERROR: FPM initialization failed This problem case should be caught by php-fpm -t call. Otherwise reloading after "successful" configuration test ends up in fpm exiting (and thus service downtime). Test script: --------------- in fpm.conf: [site] user = siteuser group = sitegroup listen = /path/to/unix/socket listen.owner = siteuser listen.group = webserver listen.mode = 0660 ... Expected result: ---------------- php-fpm -t should report an issue Actual result: -------------- php-fpm -t reports success -- Edit bug report at https://bugs.php.net/bug.php?id=68591&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68591&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68591&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68591&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68591&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68591&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68591&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68591&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68591&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68591&r=support Expected behavior: https://bugs.php.net/fix.php?id=68591&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68591&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68591&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68591&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68591&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68591&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68591&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68591&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68591&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68591&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68591&r=mysqlcfg

« previous php.bugs (#189014) next »