Hello,
Restarted my server and PHP 5.6 is not working
I get the following in the Apache logs
[Sun Feb 14 22:41:22.681477 2021] [proxy:error] [pid 7261] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php5.6-fpm-mydomain.com.sock (*) failed
[Sun Feb 14 22:41:22.681545 2021] [proxy_fcgi:error] [pid 7261] [client xxx.xxx.xxx.xxx:46126] AH01079: failed to make connection to backend: httpd-UDS
and when I run systemctl start php5.6-fpm I get
Job for php5.6-fpm.service failed because the control process exited with error code.
See "systemctl status php5.6-fpm.service" and "journalctl -xe" for details.
so I run systemctl status php5.6-fpm.service and get the following:
● php5.6-fpm.service - The PHP 5.6 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php5.6-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-02-14 23:02:45 EET; 14s ago
Docs: man:php-fpm5.6(8)
Process: 21526 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/5.6/fpm/pool.d/
www.conf 56 (code=exited, status=203/EXEC)
Process: 21524 ExecStart=/usr/sbin/php-fpm5.6 --nodaemonize --fpm-config /etc/php/5.6/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 21524 (code=exited, status=78)
Feb 14 23:02:45 systemd[1]: Starting The PHP 5.6 FastCGI Process Manager...
Feb 14 23:02:45 php-fpm5.6[21524]: [14-Feb-2021 23:02:45] WARNING: Nothing matches the include pattern '/etc/php/5.6/fpm/pool.d/*.conf' from /etc/php/5.6/fpm/php-fpm.conf at line 15.
Feb 14 23:02:45 php-fpm5.6[21524]: [14-Feb-2021 23:02:45] ERROR: No pool defined. at least one pool section must be specified in config file
Feb 14 23:02:45 hp-fpm5.6[21524]: [14-Feb-2021 23:02:45] ERROR: failed to post process the configuration
Feb 14 23:02:45 php-fpm5.6[21524]: [14-Feb-2021 23:02:45] ERROR: FPM initialization failed
Feb 14 23:02:45 systemd[1]: php5.6-fpm.service: Main process exited, code=exited, status=78/n/a
Feb 14 23:02:45 systemd[1]: Failed to start The PHP 5.6 FastCGI Process Manager.
Feb 14 23:02:45 systemd[1]: php5.6-fpm.service: Unit entered failed state.
Feb 14 23:02:45 systemd[1]: php5.6-fpm.service: Failed with result 'exit-code'.
Other versions work. Any Ideas
Thanks in Advance...
Fixed it:
So I Created a .conf for one of my domains and saved in the /etc/php/5.6/fpm/pool.d/ (as the error demanded)
This got the php5.6-fpm.service running
Then I went to all my domains that run php5.6 and enabled it again to create the .conf for each one.
But any Idea why this happened after a restart, why did all the .conf files get deleted?