Results 1 to 2 of 2
  1. #1

    PHP/IIS5 -- CGI Header Error

    Hi All,
    I am just wondering if anyone out there using PHP (4.2.3, bug also affects previous versions) with IIS5 and receives the "CGI Header Error" in PHP scripts that use an MSSQL DB connection.

    This bug has been logged on the PHP buglist ( however the moderators have closed the bug without it being investigated correctly.

    I will re-itereate the points that I have listed in the bug thread, they are;

    - I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222).
    - IIS is configured to use Host Header
    - The error message that is returned via the script is;

    <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

    - If the slot is run as a local administrator then the error does not occur, similiary if you remove the IUSR access to the slot so that you are prompted for authentication, and you use an administrator account.
    - At the same time that the error is generated, a popup also occurs on the console with the details;

    TitleBar: php.exe - Application Error

    The application failed to initialize properly (0xc0000142). Click OK to terminate the application

    - Any other PHP script which does not use an MSSQL connection works without a problem, this also includes scripts which use MySQL.

    If anyone has encountered this problem before and found a resolution for it, please post it here. As you may read from the bug thread, the developers of PHP seemed to have passed this off as an IIS issue.


  2. #2
    Join Date
    Mar 2002
    St. Louis, MO
    I dont have my php.ini in front of me, but somewhere in there where your paths are, something about CGI, set to 0 or 1, changing those got rid of those messages I got. If its the correct way to fix it, I wouldnt know but it fixed my problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts