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

 </IfModule>

 

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. 

  • 150 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...

Backup and Restore cPanel Accounts via SSH

a. How to create a backup of a cPanel Account via SSH?   1. Log-in to the SSH as the Root...

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...

Change permissions using find command

On a Linux server, if you are in need of changing the permissions of a bulk amount of files or...

Change the time of your vps/dedi

It's very easy, you first need to remove the current time file rm /etc/localtime and replace it...