Topic: Unable to use PHP-FPM with socket

I used to following command to install php-fpm

yum --enablerepo=remi,remi-php55  install -y -q  php-fpm php-cli php-gd  php-xml php-xmlrpc  php-mbstring php-tidy php-common php-pecl-ssh2

However when i tried to configure php-fpm with socket , i get Nginx 502 Bad Gateway when i load php files

I get no errors in logs.

But when i configure php-fpm with TCP/IP Port , it works fine


When i use epel repo to install php-fpm

yum  install -y -q  php-fpm php-cli php-gd  php-xml php-xmlrpc  php-mbstring php-tidy php-common php-pecl-ssh2

php-fpm with both Socket and TCP/IP works fine

Re: Unable to use PHP-FPM with socket

Read http://blog.famillecollet.com/post/2014 … and-5.5.12
Especially the notice about UDS perm.
This have change in 5.4.28 / 5.5.12 / 5.6.0beta2 to improve security... (CVE-2014-0185).

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Unable to use PHP-FPM with socket

Thanks for the quick reply

Sorry but i am still a novice ...what do i need to do to be able to use php-fpm with socket

Here is my full PHP-FPM configuration

http://pastebin.com/xhg6Xy4Z


Thanks you very much mate

Re: Unable to use PHP-FPM with socket

; Default Values: user and group are set as the running user
;                 mode is set to 0660
;listen.owner = nobody
;listen.group = nobody
;listen.mode = 0660

Just change listen mode to 0666 (default value in previous version) or change owner/group.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Unable to use PHP-FPM with socket

Thank you very much for your help mate

Kind Regards