Setting up PHP on a local computer

Discussion in 'PHP' started by steveinid, Jan 2, 2008.

  1. #1
    Today, I tried setting up PHP on my local computer. IIS is started, I got mysql setup as well but haven't tested that. My localhost is set to c:\inetpub\wwwroot. Everything seems to work fine but when I run a test program:
    it only prints out "php info" without any information.

    Is there anything I should look for that might cause php not to work?
     
    steveinid, Jan 2, 2008 IP
  2. jmhyer123

    jmhyer123 Peon

    Messages:
    542
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Something is probably configured wrong... I wouldn't bother messing with it.

    Just download this and you're good to go: http://www.wampserver.com/en/index.php

    It has Apache, PHP, and MySQL it is ready to go out of the box and it very good and easy to install.

    It's what I use and I love it!
     
    jmhyer123, Jan 2, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    When you installed PHP, it asked you to select the server, you choose IIS, did it say it was installed successfully?

    If yes, then it should be working fine. Try doing something else like:

    
    <?php
    
    echo "Hello World";
    
    ?>
    
    PHP:
    Peace,
     
    Barti1987, Jan 2, 2008 IP
  4. steveinid

    steveinid Well-Known Member

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    133
    #4
    I abandoned that whole idea and loaded wampserver... that didn't work either so I tried phpdev which is working great.
     
    steveinid, Jan 2, 2008 IP
  5. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #5
    Wamp works great but if you are running it along with iis you will need to change the port to 8080 or something else otherwise both will clash

    Regards

    Alex
     
    kmap, Jan 3, 2008 IP