Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

The specified CGI application exceeded the allowed time fo..

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  [Microsoft][ODBC Microsoft Access Driver] Disk or..  
Author Message
tyler.parke

External


Since: Dec 30, 2005
Posts: 1



(Msg. 1) Posted: Fri Dec 30, 2005 1:52 pm
Post subject: The specified CGI application exceeded the allowed time for processing. The serv
Archived from groups: microsoft>public>inetserver>iis (more info?)

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).

 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 2) Posted: Fri Dec 30, 2005 9:27 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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?

 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 3) Posted: Fri Dec 30, 2005 9:35 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I wrote a script like this -

<? sleep(480); ?>

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
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 4) Posted: Fri Dec 30, 2005 11:10 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 5) Posted: Fri Dec 30, 2005 11:41 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
Hal Rosser

External


Since: May 17, 2005
Posts: 5



(Msg. 6) Posted: Sat Dec 31, 2005 12:18 am
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<tyler.parke.TakeThisOut@gmail.com> 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.
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
Hal Rosser

External


Since: May 17, 2005
Posts: 5



(Msg. 7) Posted: Sat Dec 31, 2005 1:23 am
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"tpark" <tyler.parke.DeleteThis@gmail.com> wrote in message
news:1136007346.887807.195760@g14g2000cwa.googlegroups.com...
> I wrote a script like this -
>
> <? sleep(480); ?>
>
> 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.
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 8) Posted: Sat Dec 31, 2005 11:58 am
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

So was this a bug in IIS?
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 9) Posted: Sat Dec 31, 2005 4:28 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
Hal Rosser

External


Since: May 17, 2005
Posts: 5



(Msg. 10) Posted: Sat Dec 31, 2005 7:22 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 11) Posted: Sat Dec 31, 2005 10:50 pm
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
tpark

External


Since: Dec 30, 2005
Posts: 8



(Msg. 12) Posted: Sun Jan 01, 2006 8:57 am
Post subject: Re: The specified CGI application exceeded the allowed time for processing. The [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
 >> Stay informed about: The specified CGI application exceeded the allowed time fo.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]