ID:               9852
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Closed
 Bug Type:         IIS related
 Operating System: Windows 2000
 PHP Version:      4.2.1
 New Comment:

On our servers, we were recieving this cgi error a lot. I haven't
installed the specific patch or updated MDAC. (web server - w2k sp3 iis
5, fast; mssql server - w2k sp3 mssql 2000, fast; all on a 1gb private
net). My web server was set to background by default. I changed to
APPLICATION and things have been working well. It seems that folks are
using the background setting after the updates and patches. Don't know
if this is of any use, but I thought I'd let people know. Also, I only
recieve the CGI error on the IE browser. I have yet to recieve it on
Mozilla.

Thanks
Seth


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

[2002-10-28 04:35:26] [EMAIL PROTECTED]

Thanx for the quick answer dmendez,

I now switched to Background Application,
there are no CGI Errors, but i just could not stress test the server.
But it seems as if that solved the problem.

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

[2002-10-25 10:15:11] [EMAIL PROTECTED]

Ewald, this setting is applicable to windows not to IIS.
Go to start button, control panel, system, advanced tab then
performance option.

good luck.
dmendez

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

[2002-10-25 03:42:41] [EMAIL PROTECTED]

We have the same problem and the same configuration
Web server:
      Win2000 Server 
      IIS 5.0
      PHP 4.2.2  (CGI mode)

   Database server:
      WinNT 4.0 SP6
      MS-SQL 7.0

   Client:
      Win2000 Professional SP1
      IE 5.5 SP1

The CGI Error is apperaing now and then.
Tried all patches (MDAC 2.7 ...) and "Check File exists.."
but nothing really worked..
I would love to try to change these perfomance options as Ottawa
posted, but unfortunately I don't know where in IIS to set them! Could
somebody give me a helping hand on that ??
I will then test and post the results!

Thanks
Ewald

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

[2002-10-10 13:15:46] [EMAIL PROTECTED]

Follow up: (VERY INTERESTING)

As previously posted, a client of ours installed our PHP application
and had CGI errors like crazy. They installed MDAC 2.7 and MS02-009 and
fixed the problem.

We recently were able to convince them to try a test for us (because
their machine is three times faster than anything we have!).

We had them change their Performance Options from "Background services"
to "Application"
RESULT: CGI misbehaved ERRORS ALL OVER THE PLACE!

Set back the Performance Options to "Background services". RESULT: NO
CGI ERRORS!

Scott is really onto something here. There is no question these errors
are directly related to Performance Options and the priviledges
associated with this setting. It's very interesting that IIS doesn't
even get to the point of launching PHP in Scott's tests.

I want to do some testing with running the IIS slot as an
Administrator. I will post my findings.

Ottawa

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

[2002-09-24 20:46:08] [EMAIL PROTECTED]

Hi All,
I installed the patch for Q318089 (MS02-009) and the error still
occurs.

It's also interesting to note that after running IRIS (network packet
sniffer) it seems that IIS is not even launching PHP since the header
"X-Powered-By: PHP/4.2.3" does not show up.

I can only guess in that something with IIS/PHP/MSSQL connectivity, the
PHP executable (child handles/threads) are being locked in use which
prevents PHP from launching, however a local administrator on the box
has sufficient priviledges to over-ride these locks and PHP is
launched.

-- Packet from IRIS --
GET /image_viewer.php?strPhotoID=99cBiFieBDiBaHBHcBac&strThumb=1
HTTP/1.1
Accept: */*
Referer: http://website/test.php
Accept-Language: en-au
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
Q312461)
Host: website
Connection: Keep-Alive
Cookie: PHPSESSID=b3cfba912345ad3043a08bd6d6faf16d

HTTP/1.1 502 Gateway Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Sep 2002 01:18:12 GMT
Connection: close
Content-Length: 215
Content-Type: text/html

<head><title>Error in CGI Application</title></head>
<body><h1>CGI Error</h1>The specified CGI application misbehaved by not
returning a complete set of HTTP headers.  The headers it did return
are:<p><p><pre></pre>
---

Regards
David

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

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