Failed php-fpm.service

Darius

Verified User
Joined
Dec 20, 2019
Messages
24
anyone know how fix it? Failed to restart php-fpm.service: Unit not found.
 
Which PHP version are you using? Anyway, you can list the php-fpm services using this command:

Once listed, you can restart fpm using one of the listed names, for example:
i use php 7.4 latest version and no working
 
Which output do you get when running the following commands?

Code:
service php-fpm74 start
service php-fpm74 status
 
There are a lot of reasons it might fail, but without showing us exactly what you see or log file entries showing what is wrong, it is hard to diagnose. RoseHosting asked an important question (and commands to run) that you didn't answer. Once you show us that you ran his commands and show us the output, we can move to the next step in figuring out which of the hundreds of potential issues your issue might be.
 
There are a lot of reasons it might fail, but without showing us exactly what you see or log file entries showing what is wrong, it is hard to diagnose. RoseHosting asked an important question (and commands to run) that you didn't answer. Once you show us that you ran his commands and show us the output, we can move to the next step in figuring out which of the hundreds of potential issues your issue might be.
[Thu Nov 12 03:02:01.065747 2020] [proxy:error] [pid 27217:tid 140235165558528] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /usr/local/php74/sockets/darius.sock (*) failed
[Thu Nov 12 03:02:01.065826 2020] [proxy_fcgi:error] [pid 27217:tid 140235165558528] [client 78.63.253:0] AH01079: failed to make connection to backend: httpd-UDS
 
Those are not errors starting php-fpm those are errors from your proxy trying to connect to the unix socket that php was supposed to create. What do you see when you do this command:
ps -eaf|grep php
And what do you see with these commands:
ls -l /usr/local/php74/etc/php-fpm.conf
grep listen /usr/local/php74/etc/php-fpm.conf
 
Which PHP version are you using? Anyway, you can list the php-fpm services using this command:

Once listed, you can restart fpm using one of the listed names, for example:
● php-fpm74.service loaded failed failed The PHP FastCGI Process Manager
 
Those are not errors starting php-fpm those are errors from your proxy trying to connect to the unix socket that php was supposed to create. What do you see when you do this command:
ps -eaf|grep php
And what do you see with these commands:
ls -l /usr/local/php74/etc/php-fpm.conf
grep listen /usr/local/php74/etc/php-fpm.conf
listen = /usr/local/php74/sockets/$pool.sock
listen.owner = $pool
listen.group = apache
listen.mode = 660
 
OK, what do you see when you do these commands:
systemctl status php-74fpm.service
and
systemctl show php-74fpm.service
 
OK, what do you see when you do these commands:
systemctl status php-74fpm.service
and
systemctl show php-74fpm.service
problem fixed i buid 7.3 php version after delete old config files and again rebuid back to 7.4 now work fine.
 
Back
Top