I'm trying to install PHP so that I can test my pages without having to upload them first, so I found this nifty little program called Personal Web Server and thought 'hmm, what could this be?'. Then I downloaded PHP and installed it using the installer.

With me so far? Well anyway, whenever I try to view a PHP page, it comes up with a security warning as follows:

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.

So I was fiddling around, and I accidently uninstalled FrontPage Server Extentions, and I can't re-install them because I can't find the server config file (which might have something to do with it, I don't know).

I have no idea what I should do next, any help would be greatly appreciated. 😃

    Install PHP with the binary zip, not the exe installer. Then follow the directions in the install.txt file to set it up with your webserver and you should be set.

      well.
      ur previous installation is ok already.
      u just need to modify this in your php.ini file.

      cgi.force_redirect = 0

      try it, if can't then

      cgi.force_redirect = 1

      usually , php will run will successfully.

        Write a Reply...