XHanch Studio Log in | Register | Cart

Forum

[Troubleshoot] Fast...
 
Notifications
Clear all

[Troubleshoot] FastCGI: "500 Internal Server Error" after script runs for 40 seconds or more

1 Posts
1 Users
0 Likes
1,011 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

If you are using FastCGI or just switching from other PHP handler to FastCGI, you may get in a 500 Internal Server Error when running/opening a PHP script that runs for 40 or certain/several seconds. For your information, by default, FastCGI process will timeout after 40 seconds so you will get 500 Internal Server Error.

To solve this, you will need to increase FcgidIOTimeout or IPCCommTimeout for older version.

To set this directive via CPanel WHM:

  • Open Service Configuration -> Apache Configuration
  • Click Include Editor
  • Find Pre Main Include, select All Versions
  • Insert this to the textarea (set the timeout to 10000 seconds) -> FcgidIOTimeout 10000
  • Click Update and restart your Apache

If you don't have WHM, You can also change your httpd.conf to add this code at the top:

FcgidIOTimeout 10000

Then, simply save the changes and restart your apache

 
Posted : 04/04/2012 12:35 am
Share:

× Close Menu