[php-maint] Bug#747195: php5-fpm: Permission denied for /var/run/php5-fpm.sock

Michel D'HOOGE michel.dhooge at gmail.com
Wed May 7 13:17:37 UTC 2014


Hi,

[short version: the bug is not resolved]

I was also hit by this bug. And in my case, the variables "user" &
"group" were already set to "www-data" (message #15). So I had to
uncomment the lines with "listen.owner" & "listen.group" to have the
unix socket created with the correct user & group (www-data instead of
root).

But what sounds strange to me is that the (normally default) values
shown in comments are not those really used. Firstly, this is
misguiding. But more importantly, this breaks a config that used to
work! So I did some investigations.

In a snapshot of my system, done before I upgraded, the unix socket
was correctly created, with the expected user & group:
srw-rw---- 1 www-data www-data 0 mai    7 14:53
/.snapshots/1095/snapshot/var/run/php5-fpm.sock=

And if I diff what changed during the update, I have:
--- /.snapshots/1095/snapshot/etc/php5/fpm/pool.d/www.conf
2014-04-08 11:29:22.000000000 +0200
+++ /etc/php5/fpm/pool.d/www.conf       2014-05-07 15:06:56.338257908 +0200
@@ -40,10 +40,10 @@
 ; Default Values: user and group are set as the running user
-;                 mode is set to 0666
+;                 mode is set to 0660
 ;listen.owner = www-data
 ;listen.group = www-data
-;listen.mode = 0666
+;listen.mode = 0660

 ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
 ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
@@ -59,7 +59,7 @@
 ;       - The pool processes will inherit the master process priority
 ;         unless it specified otherwise
 ; Default Value: no set
-; priority = -19
+; process.priority = -19

So, according to me, this new version of php5-fpm is somewhat buggy...


Note: I switched to systemd during this same upgrade. So I first
looked in that direction... But I don't think this is related.

Thanks

Best regards
Michel



More information about the pkg-php-maint mailing list