Bug #67175 [Opn]: Change to the default listen.mode setting.
| From: | peter dot mescalchin at gmail dot com | Date: | Tue, 06 May 2014 10:52:00 +0000 |
| Subject: | Bug #67175 [Opn]: Change to the default listen.mode setting. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185665@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67175&edit=1
ID: 67175
User updated by: peter dot mescalchin at gmail dot com
Reported by: peter dot mescalchin at gmail dot com
Summary: Change to the default listen.mode setting.
Status: Open
Type: Bug
Package: FPM related
Operating System: Ubuntu Linux 14.04LTS
PHP Version: 5.5.12
Block user comment: N
Private report: N
New Comment:
Just made the document update via the online editor. Can probably close this out.
Previous Comments:
------------------------------------------------------------------------
[2014-05-06 10:48:30] peter dot mescalchin at gmail dot com
If that is the case miha, then the default mode value needs to be updated in PHP docs for the FPM
config page along with sapi/fpm/php-fpm.conf.in.
Note: looking at https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.conf.in
it seems this has been changed to 0660 - which is good, just didn't make the 5.5.12 release.
So only the documentation needs updating at: http://www.php.net/manual/en/install.fpm.configuration.php#listen-owner
------------------------------------------------------------------------
[2014-05-05 11:30:20] miha dot vrhovnik at domenca dot com
It's because of fix for #67060.
You now need to uncommet the listen.owner and listen.group configuration directives.
------------------------------------------------------------------------
[2014-05-03 12:57:15] dblteb at yahoo dot com
After updating to 5.5.12, I received error 502 Bad Gateway. After some research, I changed to the
listen = 127.0.0.1:9000 and my websites started working. When finding this bug report I found out it
was a permissions problem also.
Changed /etc/php-fpm/conf.d/www.conf and remove ; in front of listen.mode = 0666
and restarted php-fpm. Now I could update the other websites without any problems.
------------------------------------------------------------------------
[2014-05-01 23:42:30] peter dot mescalchin at gmail dot com
Sorry that should be:
"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 0666 needs to be corrected."
------------------------------------------------------------------------
[2014-05-01 23:37:45] peter dot mescalchin at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=67175&edit=1