cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the following error which caused your website to hang or showing ’500 Internal Server Error’ message. When checking the error log '/usr/local/apache/logs/error_log, you will see something similar as below:


[warn] .. mod_fcgid: read data timeout in 40 seconds,

[error] .. Premature end of script headers: index.php 


This is because mod_fcgid has reached the timeout in processing the parse data. So we need to increase some of the respective value:


1. Login to WHM > Apache Configuration > Include Editor > Post VirtualHost Include > All


2. Copy and paste the following code:


<IfModule mod_fcgid.c>

 FcgidProcessLifeTime 8200

 FcgidIOTimeout 8200

 FcgidConnectTimeout 400

 FcgidMaxRequestLen 1000000000



3. You will need to restart Apache after that. Your FastCGI timeout will be changed to 400 seconds. You can change the timeout according to the requirement. 

  • cpanel fcgi, fastcgi timeout, fcgi timeout, apache-fcgi
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...

cPanel script to add SPF and DKIM

There is a script available on every cPanel servers by default to enable the SPF and DKIM records...