PHP 5 Installation Problems-- Security Alert! even when cgi.force_redirect = 0
Posted on 2004-08-08
Trying to Install PHP 5 on Windows Server 2003 IIS 6. I've used the latest PHP5 installer and chosen all the correct options. PHP is installed to e:/PHP.
I receive the following:
Security Alert! The PHP CGI cannot be accessed directly.
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.
I've read all the posts on this which suggest that this is caused by an incorrect cgi.force_redirect = setting. I can confirm that c:/windows/php.ini has cgi.force_redirect = 0 set and machine has been rebooted. I tried ISAPI installation as well but did not get any joy whatsoever so have reverted to cgi. I even tried reinstalling PHP from the installer, but continue to receive the same error.
IIS shows, under app configuration, .php has exec path e:\PHP\php-cgi.exe and confirms php is added as a web service extension set to allowed with the same path.