Domain does not work: 503 service unavailable

Created:

2017-06-20 13:03:59 UTC

Modified:

2017-08-16 16:01:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Domain does not work: 503 service unavailable

Applicable to:

  • Plesk for Linux

Symptoms

Domain example.com that is served by PHP-FPM does not work:

503 service unavailable

The following error appears in domain's error log /var/www/vhosts/system/example.com/logs/error_log :

[proxy:error] [pid 7314] (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

or:

[proxy:error] [pid 15065:tid 139826443527936] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /data/vhosts/system/example.com/php-fpm.sock (*) failed
[proxy_fcgi:error] [pid 15065:tid 139826443527936] [client 203.0.113.2:50232] AH01079: failed to make connection to backend: httpd-UDS

Configuration file for a domain is missing in /opt/plesk/php/5.6/etc/php-fpm.d/ directory

Cause

Pool configuration file is missing or corrupted.

Resolution

Regenerate configuration by opening Home > Domains > example.com > PHP Settings and click OK.

If multiple domains are affected, the following command can be used to update PHP settings on all domains:

# /usr/local/psa/bin/php_settings -u

Have more questions? Submit a request
Please sign in to leave a comment.