Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: cPanel: Apache + PHP FastCGI Data Timeout Error  (Read 3054 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
cPanel: Apache + PHP FastCGI Data Timeout Error
« on: July 09, 2018, 01:55:20 pm »
If you are run on cPanel server and have FastCGI enabled in Apache, you might facing following error which caused your website hang or prompting ’500 Internal Server Error’ message. When checking into/etc/httpd/log/error_log, you will see something similar as below:

Code: [Select]
[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 following code:

Code: [Select]
<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. For more information, please refer to Apache mod_fcgid directive at