I'm running Windows 2000 Server and IIS 5; running C:\PHP\php.exe for .php files.

I recently installed PHP 4.3.1 using the windows installer and towards the end of the installation I got the error:

"Due to a missing OCX control on your system the installation Wizard is unable to configure your server. However, PHP has been successfully installed, and you need to do now is manually configure the web server as described in the install txt file which can be found in your php installation directory."

So I followed the installation directions but when I view my php file that is in my C:\Inetpub\wwwroot I get the error:

"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"

The code that is in that php file is

<?php 
   phpinfo(); 
?>

Did I miss a step or do something wrong? I really want to get PHP working...

    Edit your php.ini and fill in the appropriate value for doc_root (e.g., where your php-files reside).

    King Louie

      No, I'm not supposed to use that option since I have cgi.force_redirect = 0. That is set because I'm using IIS.

      ; The root of the PHP pages, used only if nonempty.
      ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
      ; if you are running php as a CGI under any web server (other than IIS)
      ; see documentation for security issues. The alternate is to use the
      ; cgi.force_redirect configuration below
      doc_root =

      ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
      ; most web servers. Left undefined, PHP turns this on by default. You can
      ; turn it off here AT YOUR OWN RISK
      ; You CAN safely turn this off for IIS, in fact, you MUST.
      ; cgi.force_redirect = 1
      cgi.force_redirect = 0

        Nevermind, I figured it out. It was a permission problem.

          Write a Reply...