How to deal with mod_fcgid timeout in WHM/cPanel
Using FastCGI has many advantages over DSO or SuPHP, but can become very annoying if you don’t have a lot of experience to configure it correctly.
The most common problem with mod_fcgid is the timeout error. Some people try for hours without success to resolve this, by editing the PHP configuration and can’t understand why it is timing out despite the Timeout is set high enough.
In order to change the default Timeout value for mod_fcgid you have to follow the steps below:
- Login to WHM
- Go to Service Configuration -> Apache Configuration
- Select Include Editor
- At PreVirtualHost Include select “All Versions”
- At the text field write (you can change the timeout value with anything that suits your needs)
<IfModule mod_fcgid.c> FcgidIOTimeout 360 </IfModule>
- Restart Apache from Restart Services menu
Now the mod_fcgid timeout error is gone!