Bug #67175 [NEW]: Change to the default listen.mode setting.
| From: | peter dot mescalchin at gmail dot com | Date: | Thu, 01 May 2014 23:37:45 +0000 |
| Subject: | Bug #67175 [NEW]: Change to the default listen.mode setting. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185567@lists.php.net to get a copy of this message | ||
From: peter dot mescalchin at gmail dot com
Operating system: Ubuntu Linux 14.04LTS
PHP version: 5.5.12
Package: FPM related
Bug Type: Bug
Bug description:Change to the default listen.mode setting.
Description:
------------
It seems the default for listen.mode has changed. In docs it's still
listed that the default chmod should be 0666, but it seems that starting
PHP-FPM with PHP 5.5.12 now sets the chmod to be 0660.
http://www.php.net/manual/en/install.fpm.configuration.php#listen-owner
Is this intended behaviour? If so either documents and
sapi/fpm/php-fpm.conf.in config comments need an update or I guess the
default of 0660 needs to be corrected.
Test script:
---------------
Expected socket permissions (as with PHP 5.5.11):
$ ll /run/php5/
total 4
drwxr-xr-x 2 root root 80 May 2 09:28 ./
drwxr-xr-x 27 root root 980 May 2 08:02 ../
-rw-r--r-- 1 root root 5 May 2 09:28 php-fpm.pid
srw-rw-rw- 1 root root 0 May 2 09:28 php-fpm.sock=
Returned result (as with PHP 5.5.12):
$ ll /run/php5/
total 4
drwxr-xr-x 2 root root 80 May 2 09:30 ./
drwxr-xr-x 27 root root 980 May 2 08:02 ../
-rw-r--r-- 1 root root 5 May 2 09:30 php-fpm.pid
srw-rw---- 1 root root 0 May 2 09:30 php-fpm.sock=
--
Edit bug report at https://bugs.php.net/bug.php?id=67175&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67175&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67175&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67175&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67175&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67175&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67175&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67175&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67175&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67175&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67175&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67175&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67175&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67175&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67175&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67175&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67175&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67175&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67175&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67175&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67175&r=mysqlcfg