Lockedphp on windows 2008 R2

Author
steve01
Starting Member
2011/01/20 18:24:49 (permalink)

php on windows 2008 R2

I tried to configure PHP 5.2.9 on my 64 bit windows server 2008 R2, but no luck. I exhausted all possible options but continuously getting this error:
 
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "<b>Security Alert!</b> The PHP CGI cannot be accessed directly. <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.</p> <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p> <p>For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit <a href="http://php.net/install.windows">the manual page</a>.</p> ".
 
Any help ?
#1

2 Replies Related Threads

    HC Staff
    HC Staff
    Re:php on windows 2008 R2 2011/01/21 09:19:41 (permalink)
    This version of php shall work with IIS7/7.5 using CGI mode
    PHP 5.2.9= http://hostingcontroller.com/english/forms/tech/hc/php5.2.9.zip
    #2
    steve01
    Starting Member
    Re:php on windows 2008 R2 2011/01/25 11:25:44 (permalink)
    Thank you, re-installing the PHP with the instructions mentioned in that zip file resolved the issue.
     
    cheers:)
    #3
    Jump to: