Previous Next

Thread: PHP 5 on XP with IIS - The info test page works once, then fails.

Last post 04-28-2008 10:22 PM by TonyRod. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 04-18-2008, 9:10 AM

    • allanhorwitz
    • Not Ranked
    • Joined on 04-10-2008, 1:45 PM
    • Philadelphia, PA
    • Posts 2

    PHP 5 on XP with IIS - The info test page works once, then fails.

    Description:

    ------------

    Trying to install PHP 5 on XP with IIS. The following page runs once, then fails when refresh is clicked. If I close the browser and try the page again, the page loads once, then fails on refresh.

     

    I installed PHP exactly the way the php.net instructions told me to do. It is a brand new machine with a clean install of Windows XP. Also, I am able to stop and start the web site through the IIS Management console. But, IIS crashes if I try to stop and start World Wide Web Services from the services management console. Is PHP 5 just completely unstable in a Windows XP/IIS 5 environment? Any comments would be appreciated.

     

    Reproduce code:

    ---------------

    <?php

      session_start();

    ?>

    <html>

      <head>

        <title>PHP Test</title>

      </head>

      <body>

        <p>

          The browser you're using is

          <?php echo $_SERVER['HTTP_USER_AGENT']; ?>

        </p>

        <p>

          <!-- test the browscap setup -->

          Your browser's capabilities are: <br/>

          <pre>

            <?php print_r(get_browser(null, true)); ?>

          </pre>

        </p>

        <?php phpinfo(); ?>

      </body>

    </html>

         

     

    Expected result:

    ----------------

    It should work more than once without closing and opening my web browser.

     

    Actual result:

    --------------

    Page just attempts to load.

      

    ---------------------

  • 04-18-2008, 5:35 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 154

    Re: PHP 5 on XP with IIS - The info test page works once, then fails.

    You may want to follow these instructions, when setting up PHP on XP with IIS. http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/. The instructions are for IIS6, but the steps are very similar on IIS5 in XP.

    http://ruslany.net
    Tags:
  • 04-19-2008, 3:58 AM In reply to

    • allanhorwitz
    • Not Ranked
    • Joined on 04-10-2008, 1:45 PM
    • Philadelphia, PA
    • Posts 2

    Re: PHP 5 on XP with IIS - The info test page works once, then fails.

    We ran the PHP 5 Installer and the bug went away.

  • 04-27-2008, 1:06 PM In reply to

    • TonyRod
    • Not Ranked
    • Joined on 04-27-2008, 12:56 PM
    • Posts 2

    Re: PHP 5 on XP with IIS - The info test page works once, then fails.

    ruslany:
    The instructions are for IIS6, but the steps are very similar on IIS5 in XP.

    I would like to install PHP on my XP Pro SP2 machine.  The steps "are very similar", but can you point out any specific differences between a IIS6 (Windows Server version), install and a IIS5 (XP version) install, that I may come across when I install PHP5?

    Thanks!

    TonyRod

  • 04-28-2008, 7:24 AM In reply to

    Re: PHP 5 on XP with IIS - The info test page works once, then fails.

    With IIS 6 you'll need to configure a Web Service Extension for PHP. That should be about the only difference.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 04-28-2008, 10:22 PM In reply to

    • TonyRod
    • Not Ranked
    • Joined on 04-27-2008, 12:56 PM
    • Posts 2

    Re: PHP 5 on XP with IIS - The info test page works once, then fails.

    Ok, thanks for the information!

    TonyRod

Page 1 of 1 (6 items)
Page view counter