php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61295 php-fpm should not fail with commented 'user' for non-root start
Submitted: 2012-03-05 22:37 UTC Modified: 2012-05-23 09:32 UTC
Votes:3
Avg. Score:3.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: sixd@php.net Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.4.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sixd@php.net
New email:
PHP Version: OS:

 

 [2012-03-05 22:37 UTC] sixd@php.net
Description:
------------
For non-root users:

 1. if php-fpm.config has the default 'user = nobody' then php-fpm starts with:
      "WARNING: [pool www] 'user' directive is ignored when FPM is not running as 
root"

 2. But if the 'user' directive is commented out then php-fpm fails
    to start and gives "ALERT: [pool www] user has not been defined"
    

Php-fpm should not fail to start for non root users when 'user' (and probably 
'group') are commented out of php-fpm.conf


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-23 09:21 UTC] fat@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: fat
 [2012-05-23 09:32 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=812d2481935185eeeabb2c1fe2d7eafd76fc7359
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2012-05-23 09:32 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a07d76c0ba57e6471ac5869af0aaa26206baa284
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2012-05-23 09:32 UTC] fat@php.net
-Status: Analyzed +Status: Closed
 [2012-05-23 09:32 UTC] fat@php.net
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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-05-23 11:30 UTC] cataphract@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=812d2481935185eeeabb2c1fe2d7eafd76fc7359
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2014-10-07 23:25 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=a07d76c0ba57e6471ac5869af0aaa26206baa284
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2014-10-07 23:25 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=812d2481935185eeeabb2c1fe2d7eafd76fc7359
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2014-10-07 23:36 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=a07d76c0ba57e6471ac5869af0aaa26206baa284
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2014-10-07 23:36 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=812d2481935185eeeabb2c1fe2d7eafd76fc7359
Log: - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
 [2015-12-02 13:25 UTC] 200995968 at q dot com
[02-Dec-2015 21:14:35] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[02-Dec-2015 21:14:35] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root

use sudo php-fpm start   this notice will be display
promote:~ wangchunjian$ sudo killall php-fpm
promote:~ wangchunjian$ sudo /usr/local/opt/php56/sbin/php56-fpm start
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC