HELP!! IIS won't work with my PHP files

Discussion in 'PHP' started by buckmajor, May 27, 2008.

  1. #1
    I have just set up IIS on my laptop where you manually host your PHP files in the inetpub but when I view them, they are asking to open the file or save the file.

    Any suggestions?

    Many thanks in advance
    CHEERS :)
     
    buckmajor, May 27, 2008 IP
  2. Kyriakos

    Kyriakos Active Member

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    i think that PHP files are not working with the IIS. they want the Apache software. you can install the WAMP Server (windows, apache, mysql, php). is opensource. http://www.en.wampserver.com
     
    Kyriakos, May 27, 2008 IP
  3. Sevby

    Sevby Guest

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    PHP can work with any type of server. Have you actually installed PHP or configured it properly? You can download the latest PHP installer for Windows at PHP's website. (php.net)
     
    Sevby, May 28, 2008 IP
  4. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,826
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #4
    Have you enable the server extensions for the php? What is your IIS version
     
    wisdomtool, May 28, 2008 IP
  5. buckmajor

    buckmajor Active Member

    Messages:
    574
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    WOW!! Thanks guys, after reading everyone's comment, I think php is not installed on my latop lol. I will give that one a try but as for the IIS version I'm not sure how to find out:confused: all I did was add the IIS from add/remove components in control panel and checked IIS to install.

    I will try installing php first then and see what the outcome is and report back asap
     
    buckmajor, May 28, 2008 IP
  6. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,826
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #6
    Just put in a phpinfo.php and check out if it works

    Open a text file add in

    <?php

    // Show all information, defaults to INFO_ALL
    phpinfo();

    // Show just the module information.
    // phpinfo(8) yields identical results.
    phpinfo(INFO_MODULES);

    ?>

    Save as phpinfo.php
     
    wisdomtool, May 28, 2008 IP
  7. buckmajor

    buckmajor Active Member

    Messages:
    574
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #7
    DO you have to be on the internet to make this work?
    Cause I want to test it on my localhost or laptop

    CHEERS :)
     
    buckmajor, May 29, 2008 IP
  8. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,826
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #8
    I think you need to execute it on the command line php.exe phpinfo or something to that effect.

     
    wisdomtool, May 29, 2008 IP
  9. 2slick

    2slick Peon

    Messages:
    73
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you can download php here : http://www.php.net/downloads.php

    pick PHP 5.2.6 installer, and choose extensions you want.

    install PHP as an isapi.

    on the IIS Manager add index.php as a default document.

    Be sure also to install mysql.

    good luck
     
    2slick, May 29, 2008 IP
  10. buckmajor

    buckmajor Active Member

    Messages:
    574
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #10
    I got it to work. All I did was uninstalled the various virtual host and installed wamp. So I have it running now, so I can test my php in the browser now without the internet.

    CHEERS :)
     
    buckmajor, May 31, 2008 IP