Website shows 500 internal server error: mod_fcgid: read data timeout

Created:

2016-11-16 12:50:40 UTC

Modified:

2017-07-03 13:01:56 UTC

12

Was this article helpful?


Have more questions?

Submit a request

Website shows 500 internal server error: mod_fcgid: read data timeout

Applicable to:

  • Plesk for Linux

Symptoms

  • A website is not loading and "500 internal server error" is being shown after ~30-60 seconds.
  • The following error can be observed in the domain error log /var/www/vhosts/example.com/logs/error_log file:

    [warn] [client 203.0.113.2] mod_fcgid: read data timeout in 45 seconds, referer: http://www.example.com/admin/orders.php
    [error] [client 203.0.113.2] Premature end of script headers: PDF.php, referer: http://www.example.com/admin/orders.php

    Or:

    The following error can be found in /var/log/apache2/error.log :

    [warn] mod_fcgid: process 16576 graceful kill fail, sending SIGKILL

Cause

The FcgidIOTimeout value - the maximum period of time the module will wait while trying to read from or write to a FastCGI application - has been exceeded.

Resolution

Increase the parameter value or optimize FastCGI application.

FcgidIOTimeout parameter for a domain is set to the same value as max_execution_time PHP parameter.

Additional Information

When setting max_execution_time to 0, FcgidIOTimeout value is not set in virtual host configuration

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