hi
hope you can help
i installaled php 4.1.2 on my IIS 5.0
no, i get following error
(try yourself: http://www.tekhosting.ch/phptest.php)


Security Alert! 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. This variable is set, for example, by Apache's Action directive redirect.

You may disable this restriction by recompiling the PHP binary with the --disable-force-cgi-redirect switch. If you do this and you have your PHP CGI binary accessible somewhere in your web tree, people will be able to circumvent .htaccess security by loading files through the PHP parser. A good way around this is to define doc_root in your php.ini file to something other than your top-level DOCUMENT_ROOT. This way you can separate the part of your web space which uses PHP from the normal part using .htaccess security. If you do not have any .htaccess restrictions anywhere on your site you can leave doc_root undefined. If you are running IIS, you may safely set cgi.force_redirect=0 in php.ini.

i did set cgi.force_redirect to 0, doc_root ist empty and i restartet IIS --> still same error. any idea how i can make PHP run correctly without security problems?

thank you for your help!
mike

    That same thing happened to me today. I deleted about 5 different versions of PHP and all the php.ini files and reinstalled the new version. I adjusted a few things and it works. That is one unstable program. I couldn't do anything to fix it. Once set don't mess with it, is what I learned.

      how can I make the php interpreter recognize the mssql_connect() on windows 2000

        What executable are you pointing at for php.

        There is php.exe and php-cgi.exe

        Whatever one you are pointing at try the other one and that should fix it.

          Had this one recently...
          TO install PHP on Win 2k without the hassle of having to configure it TOO much

          1) DOwnloaded the ZIp file (full install) and unzipped it to the PHP directory (this has all the extra modules etc as well as Pear etc)

          2) Downloaded the MS installer and run this to set up IIS etc..

          Whilst this may seem a mad way of going about it it works first time.

          Also if u want to support for example email then u need the files from step one In my case I had to change php.ini so the extensions = "C:\php\extensions"

          pm

            Write a Reply...