Setup Issues

Discussion in 'PHP' started by grantf, Feb 22, 2008.

  1. #1
    Hi, i have recently attempted to setup PHP with IISv6.0 and have run into some problems after installation. Basically, no PHP code seems to work. I'm fairly new to PHP but do have some understanding of how it works. Here is my setup and what i have done. Whenever i try to run any PHP, even the most basic script such as hello world fails with this error message;
    [CGI Error, The specified CGI application misbehaved by not returning a complete set of HTTP headers.]

    My software / hardware
    -------------------------------
    PHP (Manual Installation) 5.2.5 zip package
    Windows server 2003 R2, SP2
    IIS 6.0
    AMD Athlon 64 X2 Dual
    Firefox & Internet Explorer
    php-recommended.ini (renamed of course)

    My installation
    ------------
    Files have been placed in C:\PHP
    PATH has been modified to include c:\PHP
    NTFS security on c:\PHP is EVERYONE = FULL CONTROL, nothing else
    IIS root is located at c:\inetpub\wwwroot
    Web Service Extensions include c:\PHP\php-cgi.exe [ALLOWED]
    Under the default website under home directory tab
    1. Read access, log visits, index this resource
    2. Execute permissions = scripts only
    3. Configuration...
    Application extentions contain c:\PHP\php-cgi.exe (.php) [ALL VERBS]
    PHP.ini
    doc_root = "c:\inetpub\wwwroot"
    extension_dir = "c:\PHP\ext"
    cgi.rfc2616_headers = 1

    I have also tried accessing the pages through these 2 methods
    //computer/folder/index.php
    http://localhost/folder/index.php

    This is an example of code that is failing. It doesnt get any more basic than this...
    <?php
    Print "Hello, World!";
    ?>

    I'm not really sure what to do from here, searching for the error message on google has given me absolutely nothing and i've tried to follow the install.txt manual to the letter.

    Pulling my hair out - any help would be greatly appreciated!!
     
    grantf, Feb 22, 2008 IP