Does anyone have any simple instructions as to how to insatall php on a windows pc also running IIS so if i type in localhost i can view asp and if i type in something like localhost8080 i canview php pages.

I have googled numerous articles and it never works once I have installed them all at the moment i have uninstalled all php files and I'm going to start from scratch.

So would be most grateful for some ideas as the best way to go form here

Cheers for your time

    I have tried that way and have now go the following error

    <p>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.</p>
    <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
    <p>For more information about changing this behaviour or re-enabling this webserver,
    consult the installation file that came with this distribution, or visit 
    <a href="http://php.net/install.windows">the manual page</a>.</p>

    I am not surw why i want it like that with my localhost I just want it so that i can run both asp and php on my computer. So one day I can load up my asp pages and they work fine and the next work on php and they work fine

    Cheers for your help

      Hi,

      have a look at the manual. i run apache under windows, and had no trouble at all.
      It looks like you need to find php.ini on your system, and set cgi.force=0

      The manual states:

      at http://uk2.php.net/manual/en/install.windows.iis.php

      CGI users must set the cgi.force_redirect PHP directive to 0 inside php.ini. Read the faq on cgi.force_redirect for important details. Also, CGI users may want to set the cgi.redirect_status_env directive. When using directives, be sure these directives aren't commented out inside php.ini.

      and at http://uk2.php.net/manual/en/ini.core.php#ini.cgi.force-redirect

      cgi.force_redirect boolean

      cgi.force_redirect is necessary to provide security running PHP as a CGI under most web servers. Left undefined, PHP turns this on by default. You can turn it off at your own risk.
      
          Note: Windows Users: You can safely turn this off for IIS, in fact, you must. To get OmniHTTPD or Xitami to work you must turn it off

        still can't get it to work I have been trying various things and now all that happens is the page never loads ups.

        I thought PHP was supposed to be easily accessable and to use I must have spent 2 days now trying to getthis to work googling and reading variouys manuals.

          Write a Reply...