Several websites do not work: Service Temporarily Unavailable

Created:

2016-12-18 06:53:47 UTC

Modified:

2017-08-08 13:15:32 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Several websites do not work: Service Temporarily Unavailable

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

Several websites use PHP5-FPM by OS vendor. All these websites do not work:

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Web Server at example.com

The error is in /var/www/vhosts/system/example.com/logs/error_log :

[proxy:error] [pid 20980] (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
[proxy_fcgi:error] [pid 20980] [client 203.0.113.2:53904] AH01079: failed to make connection to backend: httpd-UDS

Service PHP5-FPM is unable to start:

# service php5-fpm start
php5-fpm start/running, process 2730
# service php5-fpm status
php5-fpm stop/waiting
# ps auxwfff | grep 2730 | grep -v grep
#

No any errors are logged in /var/log/php5-fpm.log .

Cause

Misconfiguration of /etc/php5/fpm/pool.d/www.conf file. Its content looks like below:

# Default www-pool configuration has been disabled by Plesk Panel.
# Pool configuration was saved in '/etc/php5/fpm/pool.d/www.conf.saved_by_psa'.
request_terminate_timeout = 300

Resolution

  1. Remove or comment out the last line. It should be in the following way:

    # Default www-pool configuration has been disabled by Plesk Panel.
    # Pool configuration was saved in '/etc/php5/fpm/pool.d/www.conf.saved_by_psa'.
  2. Start PHP5-FPM service:

    # service php5-fpm start
Have more questions? Submit a request
Please sign in to leave a comment.