I am trying to find out where this value is configured!
Win2003 x64, fully patched.
FastCGI v2, with special bits via Rick James to make it work with UNC paths
I can't get long running scripts to go more than 30 seconds. We have a few data conversion pages that will run for 1-3 minutes using slow cgi (point directly to the exe). It doesn't seem to be in the fcgiext.ini file, I set it to 600 seconds there and restarted
IIS. After 30 seconds the error I get is
FastCGI Handler Extension
Error 0x80070102 occurred processing request.
The FastCGI process exceeded configured activity timeout
As with the original poster, FastCGI times out after 30 seconds with an Activity Timeout error, regardless of how high I set the ActivityTimeout parameter.
I wonder if the correct config is getting used.. If you deliberately mess up your system32\inetsrv\fcgiext.ini config file do you see an error?
If not and you're using x64, there's an issue where the wrong .ini file is sometimes read. Could you try the latest (http://www.iis.net/default.aspx?tabid=1000057) and see if that solves the problem?
I messed up the fcgiext.ini file and restarted the app pool. No errors were displayed in IE when I went to a PHP page.
However, I'm running 32-bit Win 2K3, not x64. In addition, I'm already running the "Intermediate Release" on the page that you mentioned, which I believe is the latest release.
EDIT: problem solved. Although the DLL and the INI were located in the inetsrv directory, IIS had been configured to load the DLL from c:\php, due to a permission problem of some kind. The files weren't removed from inetsrv, so when the config file there
was changed, it had no effect, since it was getting loaded from the same folder as the DLL. Once the files in inetsrv were removed and the INI in c:\php updated, everything seems to be working fine.
Thanks for the lead -- it helped me start looking in the right direction!
I had similar problems with timeouts on PHP, but I am using IIS 7.0 which doesn't have a fcgiext.ini. It turns out that the FastCGI configuration is now in main IIS XML configuration, modifying fcgiext.ini would make no difference.
Here is how to set the configuration with IIS 7.0:
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activityTimeout:600
You need to change the 'C:\php\php-cgi.exe' to the actual location PHP that you registered with IIS.
If you want to make double-check that the configuration worked properly, you can check it like this:
%windir%\system32\inetsrv\appcmd list config -section:system.webServer/fastCgi
EDIT: problem solved. Although the DLL and the INI were located in the inetsrv directory, IIS had been configured to load the DLL from c:\php, due to a permission problem of some kind. The files weren't removed from inetsrv, so when the config file there
was changed, it had no effect, since it was getting loaded from the same folder as the DLL. Once the files in inetsrv were removed and the INI in c:\php updated, everything seems to be working fine.
I have similar issue on my server. I think that your solution could work for me too. Can you explain what you mean with removing files from inetsrv? Did you moved them into c:\php? Sorry, I am newbie with world of IIS =o).
jchertudi
35 Posts
FastCGI process exceeded configured activity timeout
Feb 17, 2007 12:43 AM|LINK
I am trying to find out where this value is configured!
Win2003 x64, fully patched.
FastCGI v2, with special bits via Rick James to make it work with UNC paths
I can't get long running scripts to go more than 30 seconds. We have a few data conversion pages that will run for 1-3 minutes using slow cgi (point directly to the exe). It doesn't seem to be in the fcgiext.ini file, I set it to 600 seconds there and restarted IIS. After 30 seconds the error I get is
FastCGI Handler Extension
Error 0x80070102 occurred processing request.
The FastCGI process exceeded configured activity timeout
rickjames
193 Posts
Microsoft
Re: FastCGI process exceeded configured activity timeout
Feb 19, 2007 05:11 PM|LINK
Hi jchertudi,
I made the following change to php.ini:
max_execution_time = 90
Then the following changes to fcgiext.ini:
RequestTimeout=90
ActivityTimeout=60
Then recycled the AppPool in question (currently config change notifications are not supported)
and then requested a page that calls sleep( 59 )
Everything worked as expected.
Cheerz,
Rick.
hreldelmyer
5 Posts
Re: FastCGI process exceeded configured activity timeout
Nov 05, 2007 10:04 PM|LINK
How does one configure the activity timeout when using Perl? Is there also a php.ini file when doing FastCGI with Perl?
FastCGI Perl iis 6
AceNZ
10 Posts
Re: FastCGI process exceeded configured activity timeout
Nov 08, 2007 10:47 AM|LINK
I've run into a similar problem. I set ActivityTimeout=900 in fcgiext.ini, then restarted IIS, and I'm still getting the activity timeout:
Error Number: 258 (0x80070102).
I'm running the 32-bit "intermediate release": 7.0.6001.16606 (LH_SRV_IIS(wadeh).070322-1011)
I'm using PHP 5.2.4-nts. I've double-checked the timeout settings in php.ini, and they look fine. Here's my current fcgiext.ini:
[Types]
php=PHP
[PHP]
ExePath=C:\PHP\php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout=500
ActivityTimeout=900
Any suggestions on how to fix this would be appreciated.
rickjames
193 Posts
Microsoft
Re: FastCGI process exceeded configured activity timeout
Nov 08, 2007 11:34 PM|LINK
Hi AceNZ,
ActivityTimeout controls home long FastCGI will wait for PHP before giving up. Is the PHP script taking longer than 900 seconds to run?
Thanks,
Rick.
AceNZ
10 Posts
Re: FastCGI process exceeded configured activity timeout
Nov 09, 2007 12:35 AM|LINK
Sorry I wasn't more clear.
As with the original poster, FastCGI times out after 30 seconds with an Activity Timeout error, regardless of how high I set the ActivityTimeout parameter.
rickjames
193 Posts
Microsoft
Re: FastCGI process exceeded configured activity timeout
Nov 09, 2007 01:19 AM|LINK
Hi AceNZ,
I wonder if the correct config is getting used.. If you deliberately mess up your system32\inetsrv\fcgiext.ini config file do you see an error?
If not and you're using x64, there's an issue where the wrong .ini file is sometimes read. Could you try the latest (http://www.iis.net/default.aspx?tabid=1000057) and see if that solves the problem?
Thanks,
Rick.
AceNZ
10 Posts
Re: FastCGI process exceeded configured activity timeout
Nov 09, 2007 03:14 AM|LINK
I messed up the fcgiext.ini file and restarted the app pool. No errors were displayed in IE when I went to a PHP page.
However, I'm running 32-bit Win 2K3, not x64. In addition, I'm already running the "Intermediate Release" on the page that you mentioned, which I believe is the latest release.
EDIT: problem solved. Although the DLL and the INI were located in the inetsrv directory, IIS had been configured to load the DLL from c:\php, due to a permission problem of some kind. The files weren't removed from inetsrv, so when the config file there was changed, it had no effect, since it was getting loaded from the same folder as the DLL. Once the files in inetsrv were removed and the INI in c:\php updated, everything seems to be working fine.
Thanks for the lead -- it helped me start looking in the right direction!
gutch
1 Post
Re: FastCGI process exceeded configured activity timeout
Jun 19, 2008 05:37 AM|LINK
I had similar problems with timeouts on PHP, but I am using IIS 7.0 which doesn't have a fcgiext.ini. It turns out that the FastCGI configuration is now in main IIS XML configuration, modifying fcgiext.ini would make no difference.
Here is how to set the configuration with IIS 7.0:
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activityTimeout:600
You need to change the 'C:\php\php-cgi.exe' to the actual location PHP that you registered with IIS.
If you want to make double-check that the configuration worked properly, you can check it like this:
%windir%\system32\inetsrv\appcmd list config -section:system.webServer/fastCgi
You should see output similar to the following:
<system.webServer>
<fastCgi>
<application fullPath="C:\php\php-cgi.exe" activityTimeout="600">
<environmentVariables>
</environmentVariables>
</application>
</fastCgi>
</system.webServer>
PHP FastCGI IIS7
IISi
2 Posts
Re: FastCGI process exceeded configured activity timeout
Aug 29, 2008 06:25 PM|LINK
I have similar issue on my server. I think that your solution could work for me too. Can you explain what you mean with removing files from inetsrv? Did you moved them into c:\php? Sorry, I am newbie with world of IIS =o).