jbreg
asked on
PHP 5 Installation Problems-- Security Alert! even when cgi.force_redirect = 0
Hi,
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.
Any thoughts?
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.
Any thoughts?
ASKER
Unfortunately that is simply not an option--in addition to the php requirement we have a bespoke web application tailored to IIS. There must be a solution (other than switching to PHP4) as I have another server in the same rack with the same OS with PHP4.x that works fine; everything virtually identical...
You could try using the ZendWinEnabler?
ASKER
This *should* be resolvable without resorting to third-party software, no?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i gave ISAPI a shot, following exactly the instructions on another ee posting, but couldn't even get anything to work out of that. Possibly because the instructions dealt with PHP 4, but I don't know--are there any really good step by steps for ISAPI on W2003 server with PHP 5?
Should not be any different.
I use Sambar Server and PHP5.
Takes less than 5 minutes to get them both installed and running. Apache takes a little longer (about 8 minutes).
I've never managed to get IIS to work.
If you have a chance, try sambar (www.sambar.com) or apache.
Sambar is a VERY small server. Nothing in Windows\system32 or the registry other than the uninstall links for Add/Remove programs.
Richard
I use Sambar Server and PHP5.
Takes less than 5 minutes to get them both installed and running. Apache takes a little longer (about 8 minutes).
I've never managed to get IIS to work.
If you have a chance, try sambar (www.sambar.com) or apache.
Sambar is a VERY small server. Nothing in Windows\system32 or the registry other than the uninstall links for Add/Remove programs.
Richard
My advice is switch to Apache, a more reliable web server in my opinion. http://httpd.apache.org/download.cgi
I recommend you get version 1.3.