The specified CGI application exceeded the allowed time for processing. The server has deleted the p

The specified CGI application exceeded the allowed time for processing. The server has deleted the p

am 30.12.2005 22:52:31 von tyler.parke

I'm getting this error after 5 minutes (300 seconds) of processing a
PHP file in IIS 5.1 (WinXP).

I've searched for hours and every solution is the following:

Open the Administrative Tools control panel.
Open the Internet Services Manager item.
Right-click on the computer icon in the left panel and choose
Properties
from the menu that appears.
Click "Edit..." next to "WWW Services".
Click the "Home Directory" tab.
Click the "Configuration..." button.
Click the "Process Options" tab.
Enter a large value in the CGI script timeout field, perhaps 999999.


I've done this, and rebooted, and did it again, checked it, did it with
a script, etc. etc.

But still I get the error after 5 minutes. Are there any other
solutions or anything else? I also have the max_execution_time variable
in php.ini set to a high value, even though I don't think that's the
problem (it would give a php error instead).

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 06:18:38 von Hal Rosser

wrote in message
news:1135979551.487620.298790@g47g2000cwa.googlegroups.com.. .
> I'm getting this error after 5 minutes (300 seconds) of processing a
> PHP file in IIS 5.1 (WinXP).
>
> I've searched for hours and every solution is the following:
>
> Open the Administrative Tools control panel.
> Open the Internet Services Manager item.
> Right-click on the computer icon in the left panel and choose
> Properties
> from the menu that appears.
> Click "Edit..." next to "WWW Services".
> Click the "Home Directory" tab.
> Click the "Configuration..." button.
> Click the "Process Options" tab.
> Enter a large value in the CGI script timeout field, perhaps 999999.
>
>
> I've done this, and rebooted, and did it again, checked it, did it with
> a script, etc. etc.
>
> But still I get the error after 5 minutes. Are there any other
> solutions or anything else? I also have the max_execution_time variable
> in php.ini set to a high value, even though I don't think that's the
> problem (it would give a php error instead).
>
You might be trying to correct the wrong thing.
Maybe there's something in your script causing no response for 5 minutes.
Its an easy mistake to make.Maybe an if statement without an else ?
--- Consider the possibility that it might be your code.

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 06:27:28 von tyler.parke

yes, but would there be anything that gives the exact error -
"The specified CGI application exceeded the allowed time for
processing. The server has deleted the process."

from what I've gathered, it seems to be a purely IIS message. Is it
possible something in my code causes IIS to kick up this message?

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 06:35:46 von tyler.parke

I wrote a script like this -



it timed out after exactly 300 seconds. It's definitely IIS.

Some other things I've tried -

rebooting
reinstalling IIS
installing a different version of PHP
yelling at the monitor
installing a different version of MySQL
more rebooting

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 06:40:41 von tyler.parke

I also want to mention that if I only upload data that requires 4
minutes of processing. Everything works great.

Lastly, I want to show that I actually did set the timeout to > 300s

http://img507.imageshack.us/img507/3118/3000s7in.png

Is this a bug in IIS?

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 07:23:25 von Hal Rosser

"tpark" wrote in message
news:1136007346.887807.195760@g14g2000cwa.googlegroups.com.. .
> I wrote a script like this -
>
>
>
> it timed out after exactly 300 seconds. It's definitely IIS.
>
> Some other things I've tried -
>
> rebooting
> reinstalling IIS
> installing a different version of PHP
> yelling at the monitor
> installing a different version of MySQL
> more rebooting
>
I found this info
**************************
Server.ScriptTimeout = 300. in any of the <% %> tags. This setting tells
the
server to give your Site Server template 5 minutes before it times out.
**********************
So, Try changing Server.ScriptTimeout = 300 to another number and see if
that will make a difference.

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 08:10:30 von tyler.parke

that code is VBScript. I made a VBScript with the ScriptTimeout
changed. That *WORKED* but I can't incorporate VBScript (ASP) with PHP
(CGI). So that narrows it down to my changing the timeout in the IIS
console isn't working.

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 08:25:19 von someone

I presume you configured IIS to use the PHP CGI EXE in the Application
Mapping?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"tpark" wrote in message
news:1136013030.811978.127050@f14g2000cwb.googlegroups.com.. .
> that code is VBScript. I made a VBScript with the ScriptTimeout
> changed. That *WORKED* but I can't incorporate VBScript (ASP) with PHP
> (CGI). So that narrows it down to my changing the timeout in the IIS
> console isn't working.
>

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 08:41:53 von tyler.parke

yes, it uses

C:\PROGRA~1\PHP\php-cgi.exe

as set up by the PHP 5.1.1 installer

I also want to note that the same script when running for < 300s (5min)
works fine.

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 10:14:43 von someone

What happens if you use the ISAPI version of PHP.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"tpark" wrote in message
news:1136014913.226199.231480@f14g2000cwb.googlegroups.com.. .
> yes, it uses
>
> C:\PROGRA~1\PHP\php-cgi.exe
>
> as set up by the PHP 5.1.1 installer
>
> I also want to note that the same script when running for < 300s (5min)
> works fine.
>

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 31.12.2005 20:58:07 von tyler.parke

okay, just tried the ISAPI version of PHP. Everything works great! It
can go longer than 300s.

So was this a bug in IIS?

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 01.01.2006 01:22:13 von Hal Rosser

>
> So was this a bug in IIS?
>
not anymore - you fixed it

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 01.01.2006 01:28:22 von tyler.parke

heh, but that's only by using ISAPI. PHP + CGI is still the popular
method. I'm curious to why it doesn't work with IIS 5.1. In fact, most
people seem to be able to use it okay.

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 01.01.2006 07:12:23 von someone

PHP on IIS should favor ISAPI. PHP on other web servers tend to favor CGI.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"tpark" wrote in message
news:1136075302.671041.72090@f14g2000cwb.googlegroups.com...
> heh, but that's only by using ISAPI. PHP + CGI is still the popular
> method. I'm curious to why it doesn't work with IIS 5.1. In fact, most
> people seem to be able to use it okay.
>

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 01.01.2006 07:50:11 von tyler.parke

sure, but I'm still wondering why didn't PHP/CGI on IIS work? It seems
to work for most people..

But I guess there's no good way to debug this

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 01.01.2006 09:43:28 von someone

Huh? PHP CGI *does* work on IIS. It just appears to not work in the usually
"error" condition of not responding for 5+ minutes.

Most people never go down error condition so they are fine. You seem to
depend on error condition as "normal" and hence to you it looks like things
don't work.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"tpark" wrote in message
news:1136098211.169233.4210@g43g2000cwa.googlegroups.com...
> sure, but I'm still wondering why didn't PHP/CGI on IIS work? It seems
> to work for most people..
>
> But I guess there's no good way to debug this
>

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 01.01.2006 17:57:56 von tyler.parke

It just seems to me that if there is an option called "CGI script
timeout" in IIS, it would use that value instead of arbitrarily 300s.

I don't think a script running for 5+ minutes is an error condition,
since I've read hundreds of posting of people with scripts like that
and they seem to have solved their problem by changing the value of the
timeout as I did above.

Re: The specified CGI application exceeded the allowed time for processing. The server has deleted t

am 04.01.2006 22:45:03 von someone

FYI: Code that runs synchronously for any appreciable amount of time and can
be remotely invoked is practically DoS. Just send a couple dozen such
requests (do even need to swamp the server with requests) and that server
will be hosed no matter the OS/server SW.

So, "timeout" may be an "option" but it is for essentially an error
condition... trying to cap the max amount of time such a resoure drain runs.
It does not matter how many people do something because that merely makes
the choice popular, not correct.


I'm not certain why CGITimeout is not working for you on XP Pro. You were
modifying the global value; perhaps there was a per-website or per-URL
override configured at a child node. IIS configuration is hierarchical, so
you can set global values to quickly inherit to child nodes... unless child
node overrides it. And the effective value depends on *where* in the
hierarchy you ask to resolve a given property value.

Or maybe CGITimeout needs a server restart to take effect - changing *some*
of the global values require such action to take effect.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"tpark" wrote in message
news:1136134676.294503.159550@f14g2000cwb.googlegroups.com.. .
> It just seems to me that if there is an option called "CGI script
> timeout" in IIS, it would use that value instead of arbitrarily 300s.
>
> I don't think a script running for 5+ minutes is an error condition,
> since I've read hundreds of posting of people with scripts like that
> and they seem to have solved their problem by changing the value of the
> timeout as I did above.
>