Website is not accessible: The timeout specified has expired: Error dispatching request to

Created:

2016-12-18 06:51:41 UTC

Modified:

2017-08-16 17:08:52 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Website is not accessible: The timeout specified has expired: Error dispatching request to

Applicable to:

  • Plesk for Linux

Symptoms

  • A website is not accessible with:
    Gateway timeout error 502
  • Service php-fpm does not start after FTP user password is changed, however, if the password is changed again in rapid succession, then the php-fpm service starts.
  • Domain logs located in /var/www/vhosts/example.com/logs/error_log contain the following error:
    [proxy_fcgi:error] [pid 42290:tid 140458047010560] (70007)The timeout specified has expired: [client 203.0.113.2:54693] AH01075: Error dispatching request to :

Cause

Insufficient FastCGI timeout limits.

Resolution

Adjust FastCGI timeout limits.

For RHEL-based:

  1. Open /etc/httpd/conf.d/fcgid.conf and set the following values:
    # cat /etc/httpd/conf.d/fcgid.conf | grep Time
    FcgidIdleTimeout 600
    FcgidProcessLifeTime 600
    FcgidConnectTimeout 600
    FcgidIOTimeout 600
  2. Restart Apache:

    # service httpd restart

For Debian-based:

  1. Open /etc/apache2/mods-enabled/fcgid.conf and set the following values:
    # cat /etc/apache2/mods-enabled/fcgid.conf | grep Time
    FcgidIdleTimeout 600
    FcgidProcessLifeTime 600
    FcgidConnectTimeout 600
    FcgidIOTimeout 600
  2. Restart Apache:

    # service apache2 restart
Have more questions? Submit a request
Please sign in to leave a comment.