ISS Webserver med PHP (force-cgi-redirect problem)
Jeg har forgæves prøvet at få en ISS webserver med php-understøttelse op at kører på min lokale maskine.Følgende er hvad jeg har gjort og hvad roblemet er...
Software:
- Windows XP Pro (Service Pack 1a)
- ISS 5.1
- PHP 4.2.3
Jeg har gjort følgende:
- PHP-mappen ind i "C:\Php\"
- Omdøbte php.ini ind i "C:\windows\"
- sat extension dir til "C:\php\"
- sat doc_root til "C:\webtest\"
- sat cgi.force_redirect til "0" (Står der man skal )
I ISS er følgende lavet:
- Home Directory - local path er sat til "C:\Webtest"
- Alle options under local path er sat til
- Under Configuration er tilføjet "C:\php\php.exe" med extension ".php"
Derefter genstarter jeg og starter ISS, og vælger browse -> kommer ind på localhost og vælger filen
test.php som jeg har lavet (i den står der blot "<?php phpinfo();?>")... Nu får jeg følgende error:
***
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.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation
file that came with this distribution, or visit the manual page.
***
Hvad gør jeg galt?... Jeg har jo sat cgi.force_redirect til off...
