Hi,

I want to run PHP on a IIS 6.0 webserver (windows small business server 2003).

When i try to access a webpage it states : Service unavailable

How can i resolve this ?

    22 days later

    Hi how have you installed php on the server ?

    David

      13 days later

      hi i just install php 5 to my window xp pro with iis5 on, I just install php using the php window installer. but my problem now is where, how can i put all my php file so that i can view it at my IE. I really have no idea which folder i should place my php file on.
      For ex. for asp i can easlier put it in wwwroot and it works fine.

      can anyone please help me out. thanx

        Originally posted by xix17
        hi i just install php 5 to my window xp pro with iis5 on, I just install php using the php window installer. but my problem now is where, how can i put all my php file so that i can view it at my IE. I really have no idea which folder i should place my php file on.
        For ex. for asp i can easlier put it in wwwroot and it works fine.

        can anyone please help me out. thanx

        On the computer running IIS open your web browser to http://localhost

        You should get the IIS documentation, and there you'll find the answers to where to put web files and how to manage your web server.

          where should i place my php file so that i can view in IE?

          once i view php file from IIS 6 manager the browser display


          <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>


            Originally posted by Doug G
            On the computer running IIS open your web browser to http://localhost

            You should get the IIS documentation, and there you'll find the answers to where to put web files and how to manage your web server.

            "You are not authorized to view this page" is the message I get when I go to : "http://localhost/". My server install said - I should consider the home page to be at: "C:\Inetpub\wwwroot" - which was populated at the completion of the IIS install with files ending in .asp - clicking on "iisstart.asp" gives me a message that says (popup/alert box): "Windows cannot open this file: File iisstart.asp"

            I installed php from php.org - 4.3 version - I think - it is in c:/php. When I try to open a .php file - a dos-like window opens - and code scrolls thru it - and it closes - while never opening a browser window to show me the web page!

            Any thing you can advise me that will fix these two issues would be most apreciated! Thanks!

              In IIS, under Web sites, right click on your site, go to properties. On the "Home Directory" tab, look at the "Application Settings" section (lower half). Is 'execute permissions:' set to Scripts only?

              EDIT: I've found it best to simply download the .zip (non-installer) version of PHP, extract it, configure php.ini so it suits your needs, and then install the ISAPI PHP module in IIS.

                Originally posted by bradgrafelman
                In IIS, under Web sites, right click on your site, go to properties. On the "Home Directory" tab, look at the "Application Settings" section (lower half). Is 'execute permissions:' set to Scripts only?

                EDIT: I've found it best to simply download the .zip (non-installer) version of PHP, extract it, configure php.ini so it suits your needs, and then install the ISAPI PHP module in IIS.

                Basically - I am just trying to have a php cabable server localy - so I can do my site revision - add in the require/include php functions, and test the pages before I upload them to the server -= get the job done - offline - then post them all the same day!

                Let's see if I am on the right track - Control Panel > Administrative Tools > Computer Management >(Click) >Expand Services and Applications > Expand Internet Informations Service > Right Click on Web Sites [Properties] > [Home Directory] Tab - Execute Permissions - is set to "Scripts only" - Yes. (Is that the wrong setting here?)

                Under Web Site Properties Window - [ISAPI Filters] tab, there is a green 'up arrow' beside 'sspifilt' - high, compression - high, md5filt - high, pwsdata - low.

                Under [HTTP Headers] tab, do I need to add something into 'Custom HTTP headers' box? Do I need to use the 'MIME Map' as well?

                Ok - I see under [Custom Errors] tab, the 403;14 error that I got - clicking "http://localhost" in my browser - ( Default - "Forbidden - Directory Listing Denied" )

                Currently - under [Documents] tab, checked off is 'Enable Default Document' and available curently are: Default.htm; Default.asp; index.htm; index.html. ? Do I need to Add a default/index.php file name here? there is also a (currently unselected) option for 'Enable Document Footer' - is this standard? (I plan on using headers and footers - as separate files - considered using php 'include' - is this selection related to this kind of function?

                Second - "Configure php.ini" - Most likely without a clue as to what would 'suit me' best!?

                Third - Installing the "ISAPI PHP module" - again - lost my head on that one?

                  Additional Info - IIS 5.1,

                  Reference Message - "Access to Internet Services Manager (HTML) is restricted to Localhost"
                  ... "As a security precaution, Setup restricts Internet Services Manager (HTML) to allow access only from the server computer itself "

                  But - I am sitting at the keyboard of the one and same computer - logged in as Admin - like usuall, and I am still locked out!

                    Well - not sure if my peeking into the IIS info - got me to edit something that made it work - but it now seems to not give me the Error Page message, and - correctly configured php code is working right - at first glance! Thanks!?!

                      So this is magically resolved?

                      Glad you could find a working solution. Don't forget to mark this thread resolved if it is.

                        'I' - Can't mark the thread resolved - as - I am not the thread starter!

                        However - my part - seems to be OK now!! My pages render out fine in my browser - when there are no code errors!!
                        ( fun looking for them to fix them - even when they say the line the error occured on!) (using homesite 5.5 - not the best for php - but still not used to PHP Designer 2005 - my other IDE tool!).

                          My mistake. With all these threads, I lose track of what happened in the beginning of some :p

                            Write a Reply...