FCGI Running PHP Code Results In Error
Wampserver FCGI mode running a script / code results an error and says to contact your administrator and to look at the Apache logs.
in a timeout error when running php code after 120 seconds and need to increase this
To increase the FastCGI timeout in WampServer, you'll need to modify the httpd.conf file. Here’s how you can do it:
1.Locate the httpd.conf file:
•Open WampServer and click on the WampServer icon in the system tray.
•Go to Apache > httpd.conf.
2.Edit the httpd.conf file:
•Find the section for mod_fcgid by searching for <IfModule fcgid_module>.
•Add or modify the following lines to increase the timeout values:
FcgidIOTimeout 3600
FcgidConnectTimeout 300
FcgidBusyTimeout 300
FcgidIdleTimeout 300
3.Save and restart:
•Save the changes to the httpd.conf file.
•Restart all WampServer services for the changes to take effect.
Note! For WampSever just need to adjust the following timer from 300 to 3600 (1 hour)
FcgidIOTimeout 3600