ID:               9852
 Comment by:       eduardo at tre-to dot gov dot br
 Reported By:      ron dot baldwin at sourceprose dot com
 Status:           Closed
 Bug Type:         IIS related
 Operating System: Windows 2000
 PHP Version:      4.2.1
 New Comment:

Hello!
I have the error message:

HTTP/1.1 502 Gateway Error Server: Microsoft-IIS/5.0 Date: Thu, 29 May
2003 19:24:31 GMT Content-Length: 186 Content-Type: text/html 

each time that i open an PHP page. With or whiout db conection,
header(...), frames, etc.
I know that the message is shown always that the time set on IIS to be
the timeout to CGI Script:
On IIS select the site and click Properties.
Click the Home Directory tab.
On Application Protection, select:High (Isoleted)
Click Configuration. 
Select Process Options. 
See the option: CGI Configurations-> CGI Script timeout.
Always, on this time, the message error appears. If you select the
Application Protection to other option, the default time (300s) is set
to.

I am using php 4.3.3 on cgi mode in IIS5 and W2K Adv Server. On same
php and IIS, with W2K Professional the problem don't occurs.

The Event Log shows:
The script started from the URL '/xxx.php' with parameters '' has not
responded within the configured timeout period.  The HTTP server is
terminating the script. 
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp. 

I already experienced all of the kinds shown in this(and in others Bug
#) but nothing solve the bug.
I am desperate because it go well before I reinstalled the system and
updated the IIS4 to IIS5 and php 4.0.1 to 4.3.3.

Now, only rest me test the isapi, that the self PHP's instruction say
that isn't stable...


Previous Comments:
------------------------------------------------------------------------

[2003-05-28 08:50:36] wharrison at pro dot ie

I am trying Pedro's cgi.rfc2616_headers = 1 tip. We noticed this
problem a few times a day on an WinNT, IIS, PHP 4.3, MSSQL 2000 setup.
I could also reproduce this with the bounce.php suggested a while ago.
I was cosidering switching to Apache untill I read the post above.

------------------------------------------------------------------------

[2003-05-22 13:21:17] phpbugs at spudland dot com

This is not just an IIS bug.

I receive this bug on a production Win2K server that uses Apache 2.0.x
and PHP as a CGI. The PHP script in question does not use re-directs,
however it does add header information.

When I comment out the MS-SQL commands, the error disappears. With
MS-SQL commands uncommented, it serves up a storm of these errors.

I will try the RFC option mentioned above my comment! Again, this bug
appears to NOT be related to just IIS but rather the MS-SQL support.

------------------------------------------------------------------------

[2003-05-12 07:27:01] pedro at fundacaounimed dot com dot br

I think I find the solution for this problem (at least on version
4.3.1)...
Just put this line "cgi.rfc2616_headers = 1" on php.ini.
Please, send us a message if it works. I had this problem during much
time and looking for solution, I saw that many others have it too.

PS.: sorry if there is some english error.

------------------------------------------------------------------------

[2003-04-17 20:43:39] ottawasixtyseven at hotmail dot com

Parsnip, it's an IIS bug. Have you tried php4isapi.dll? It completely
fixes this problem. I can send you my breakiis.exe so you can prove to
your managers that IIS can't handle multiple simultaneous to any CGI.
The trick is to get away from CGI.

This is right off the Microsoft site:

"The Internet Server Application Programming Interface (ISAPI) model
was developed as a higher-performing alternative to the Common Gateway
Interface (CGI). ISAPI provides a number of advantages over CGI,
including low overhead, fast loading, and better scalability."

"The chief difference between the CGI and ISAPI programming models is
the way processing is handled. With CGI, the system creates a unique
process for every request. Each time an HTTP server receives a request,
it initiates a new process. Because the operating system must maintain
all these processes, CGI is resource-intensive. This inherent
limitation makes it difficult to develop responsive Internet
applications with CGI."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/htm/ISAPIExtensions.asp

Ottawa

------------------------------------------------------------------------

[2003-04-10 11:58:54] parsnip11 at hotmail dot com

I'm using windows 2000 advanced server, service pack 3, pentium 2.2
ghz, 512 ram. The Usleep function is working for me intermittently and
sometimes solves the problem.... mostly it's effective if I do a
javascript redirect as opposed to using the header command.

All patches and performance changes mentioned here havent done a thing
to change this bug.

PHP PEOPLE ---> You have just GOT to open this bug up. I can only work
with iis in my current enviornment and not being able to do redirects
with PHP is just crippling my applications. 

Huffing that Microsoft's products are broken is not an acceptable
solution. This exactly the kind of thing that make managers say "I told
you it should have been done in asp... enough with your goofy php!".

please fix this bug!

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/9852

-- 
Edit this bug report at http://bugs.php.net/?id=9852&edit=1

Reply via email to