DatGuyDubG
asked on
How to configure FastCGI activity timeout for php-cgi.exe, Windows7, x64
"HTTP Error 500.0. The FastCGI process exceeded configured activity timeout."
For the life of me, I can't figure out how to increase the activity timeout beyond the default timeout limit. I can't open the IIS server console, and changes I make to the php.ini file don't seem to change the IIS FastCGI timeout.
I'm running Windows 7, 64-bit, IIS 7.5, MySQL, PHP 5.3.1, MySQL Server 5.1. I've attached a screenshot.
(FWIW, I normally use Apache HTTP Server, but I couldn't get it to work with PHP an MySQL on this computer--I think because of Windows 7 security settings that I'm unfamiliar with.)
Any help would be greatly appreciated.
FastCGI-process-exceeded-configu.png
For the life of me, I can't figure out how to increase the activity timeout beyond the default timeout limit. I can't open the IIS server console, and changes I make to the php.ini file don't seem to change the IIS FastCGI timeout.
I'm running Windows 7, 64-bit, IIS 7.5, MySQL, PHP 5.3.1, MySQL Server 5.1. I've attached a screenshot.
(FWIW, I normally use Apache HTTP Server, but I couldn't get it to work with PHP an MySQL on this computer--I think because of Windows 7 security settings that I'm unfamiliar with.)
Any help would be greatly appreciated.
FastCGI-process-exceeded-configu.png
You need to modify the ActivityTimeout value in the FCGIext.ini file.
You should be able to find this file in %windir%\system32\inetsrv directory.
Dont forget to do an IISReset once you've modified that value for the setting to take effect.
You should be able to find this file in %windir%\system32\inetsrv directory.
Dont forget to do an IISReset once you've modified that value for the setting to take effect.
ASKER
akhafaf:Thanks for the comment and the interesting reading.
Springy555: I think you're definitely on the right path, but can't find any FCGIext.ini file. I've tried searching my entire C:\ drive. I've attached an image of my %windir%\system32\inetsrv directory. I can't find an .ini or any text file I can modify IIS timeout settings for.
inetsrv-directory.png
Springy555: I think you're definitely on the right path, but can't find any FCGIext.ini file. I've tried searching my entire C:\ drive. I've attached an image of my %windir%\system32\inetsrv directory. I can't find an .ini or any text file I can modify IIS timeout settings for.
inetsrv-directory.png
ASKER
Okay, thanks to akhafaf's and Springy555's inspiration, I dug further and found that I didn't have the Microsoft Management Console set up, and thus didn't have the Snap-In for the IIS Manager, which would give me GUI access to all the IIS settings. Once I got the IIS Manager Console working, I was able to edit the FastCGI Settings in the console. The steps I took are below:
1) Control Panel --> Programs and Features --> Turn Windows features on or off (to find mgmt console settings)
2) Internet Information Services --> Web Management Tools --> IIS Management Console (checkbox yes to make IIS Mgmt Console available)
3) Run --> mmc (to launch Microsoft Management Console)
4) File --> Add/Remove Snap-in... --> Internet Information Services (IIS) Manager --> Add (to add IIS Console to Console Mgr)
5) Launch IIS Manager
6) Double-click FastCGI Settings
7) Select the php-cgi.exe file (single-click), then select "Edit..."
8) Increase "Activity Timeout" under "Process Model".
9) Phew--take a break, because you're finally done (after you restart your web server)!
Thanks so muchSpringy555 and akhafaf, for pointing me in the right direction.
1) Control Panel --> Programs and Features --> Turn Windows features on or off (to find mgmt console settings)
2) Internet Information Services --> Web Management Tools --> IIS Management Console (checkbox yes to make IIS Mgmt Console available)
3) Run --> mmc (to launch Microsoft Management Console)
4) File --> Add/Remove Snap-in... --> Internet Information Services (IIS) Manager --> Add (to add IIS Console to Console Mgr)
5) Launch IIS Manager
6) Double-click FastCGI Settings
7) Select the php-cgi.exe file (single-click), then select "Edit..."
8) Increase "Activity Timeout" under "Process Model".
9) Phew--take a break, because you're finally done (after you restart your web server)!
Thanks so muchSpringy555 and akhafaf, for pointing me in the right direction.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Certainly helpful, and would've been 100% perfect if I wasn't such a newbie with Windows 7 + IIS 7.5 (which has config files in different formats).
Did you access win7 as an Administrator ????
Disable the firewall and check if this works with it . and make sure that you have no third firewall third pary app is installed on it
http://www.techtalkz.com/windows-7/515977-how-configure-windows-firewall-windows-7-a.html
For your Information you can refer to the following for more reading about the Seurity features on Win7 and IE8
http://www.microsoft.com/security/products/windows7.aspx
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=44405777-51b4-4376-9cef-f0341b13fcde
And finally,,, this is the only link I post and I hope it helps
http://learn.iis.net/tags/FastCGI/default.aspx
Best Wishes