Bug #67175 [Com]: Change to the default listen.mode setting.

From: Date: Sat, 03 May 2014 12:57:15 +0000
Subject: Bug #67175 [Com]: Change to the default listen.mode setting.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185601@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 Comment by: dblteb at yahoo 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: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#185601) next »