Applicable to:
- Plesk for Linux
Symptoms
-
Sites that use the same PHP-FPM version (for example, 7.2 are not working):
CONFIG_TEXT: 503 service unavailable
-
The following error appears in the domain's error log
/var/www/vhosts/system/example.com/logs/error_log
:CONFIG_TEXT: [proxy_fcgi:error] [pid 15605:tid 140353550149376] [client 203.0.113.2:45388] AH01079: failed to make connection to backend: httpd-UDS
[proxy:error] [pid 15605:tid 140353373902592] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/example.com/php-fpm.sock (*) failed -
Socket
/var/www/vhosts/system/example.com/php-fpm.sock
does not exist and switching PHP handler to another one at Plesk > Domains > example.com > PHP Settings recreates it, but switching PHP handler back removes it again
Cause
Stuck or terminated PHP-FPM service.
Resolution
-
Login to the server via SSH
-
Restart PHP-FPM service that is used by domains:
# service plesk-phpXX-fpm restart
Note: Change XX to the corresponding version (e.g.
plesk-php72-fpm
) -
Recreate sockets by executing the command:
# plesk bin php_settings -u
Comments
1 comment
I have got a similar problem. After an update my website was down with a 503 error message. The log file shows the following entries:
ERROR: unable to bind listening socket for address '/run/plesk/php7.0-fpm.sock': No such file or directory (2)
ERROR: FPM initialization failed
The directory '/run/plesk' indeed does not exist. I created it manually and after restarting php using
service plesk-php73-fpm restart
php ran again.
The problem is, that this directory will be removed when the server is booted up again. What can I do about that error?
Thank you very much in advance.
Please sign in to leave a comment.