FS#47580 - [php-fpm] not launch with http:http user/group

Attached to Project: Arch Linux
Opened by Gustavo Alvarez (sl1pkn07) - Thursday, 31 December 2015, 18:03 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 02 January 2016, 08:54 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

reloading the service php-fpm in 7.0.1-2, makes the sock file with owner/group root:root

└───╼ ls /run/php-fpm/php-fpm.sock
srw-rw---- 1 root root 0 dic 31 18:45 /run/php-fpm/php-fpm.sock


but /etc/php/php-fpm.d/www.conf is set (by default):

user = http
group = http

listen = /run/php-fpm/php-fpm.sock

I use lighttpd, and one of my config files is:

server.modules += ( "mod_fastcgi" )

index-file.names += ( "index.php" )
fastcgi.server += (
".php" => (
"localhost" => (
"socket" => "/run/php-fpm/php-fpm.sock",
"broken-scriptfilename" => "enable",
)
)
)
[1]

but when launch any local webapp gets 503 [2]

the php.ini file is sync with the latest changes in php.ini.pacnew

and the lighttpd log show:

2015-12-31 18:51:13: (mod_fastcgi.c.1744) connect failed: Permission denied on unix:/run/php-fpm/php-fpm.sock
2015-12-31 18:51:13: (mod_fastcgi.c.2846) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
2015-12-31 18:51:15: (mod_fastcgi.c.2673) fcgi-server re-enabled: unix:/run/php-fpm/php-fpm.sock

php-fpm and lighttpd services is reload/stop/start (with wait time between actions). no sucess

[1] https://wiki.archlinux.org/index.php/Lighttpd#Using_php-fpm
[2] http://sl1pkn07.wtf/paste/
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Saturday, 02 January 2016, 08:54 GMT
Reason for closing:  Fixed
Comment by Gustavo Alvarez (sl1pkn07) - Thursday, 31 December 2015, 22:37 GMT
fixed if uncomment

listen.owner = http
listen.group = http


sorry the noise
Comment by Pierre Schmitz (Pierre) - Friday, 01 January 2016, 17:59 GMT
It makes sense to set the listen user and group by default as we already set user, group and socket.

Loading...