+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
Web Development Thread, PHP & IIS in Coding and Web Development; Has anyone here successfully installed PHP on IIS before? I've been trying for the past few hours but I keep ...
  1. #1

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173

    PHP & IIS

    Has anyone here successfully installed PHP on IIS before? I've been trying for the past few hours but I keep getting a 404 error when I try to view a PHP page. I've read on some sites that I need to register a PHP isapi filter but each time I do this is just says not loaded.

  2. #2
    StewartKnight's Avatar
    Join Date
    Jun 2005
    Posts
    1,587
    Thank Post
    2
    Thanked 27 Times in 21 Posts
    Rep Power
    29
    I have done it, it can be done! It was a long time ago, and I remember at the time a small problem, but I googled it and was soon up and running.

    I have a book on php and it had a section on installing php on iis, I'll dig it out at lunch and let you know!

  3. Thanks to StewartKnight from:

    Edu-IT (18th June 2008)

  4. #3
    clarky2k3's Avatar
    Join Date
    Nov 2007
    Location
    Northumberland
    Posts
    317
    Thank Post
    35
    Thanked 47 Times in 39 Posts
    Rep Power
    24
    I have XAMPP and IIS running on the same web server. Just change the ports in IIS to 8080.

  5. Thanks to clarky2k3 from:

    Edu-IT (18th June 2008)

  6. #4
    Quackers's Avatar
    Join Date
    Jan 2006
    Posts
    1,276
    Thank Post
    39
    Thanked 134 Times in 110 Posts
    Rep Power
    51
    Yes its easy if you follow this Video.

    Installing PHP5 on Windows 2003 and IIS6 | PHP | Web Technologies- VideoTutorialZone.com

    Runs nice too, i run Joomla on IIS.

  7. 2 Thanks to Quackers:

    clarky2k3 (18th June 2008), Edu-IT (18th June 2008)

  8. #5

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173
    I've followed those instructions exactly but I just get a 404 page not found whenever I try to view a PHP page.

  9. #6

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    19
    Are the permissions the filesystem set right, IUSR_(whatever it is) should be allowed to read the files

  10. #7

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173
    Quote Originally Posted by Jackd View Post
    Are the permissions the filesystem set right, IUSR_(whatever it is) should be allowed to read the files
    Yes they are.

  11. #8

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173
    I think I'm getting somewhere. Now when I try to view a PHP file it says that I don't have permission to view it yet the permissions on the file are correct. The permissions applied to the index.html file are the same as the index.php file but it's complaining. Any ideas?

  12. #9
    Quackers's Avatar
    Join Date
    Jan 2006
    Posts
    1,276
    Thank Post
    39
    Thanked 134 Times in 110 Posts
    Rep Power
    51
    only thing i can suggest is you install 2003 server on another box fresh install, then follow the same procedure on that box, if it works we know somthing is really wrong with the config on your server, if it does not then there must be 1 tick box or somthing your missing.

  13. #10
    clarky2k3's Avatar
    Join Date
    Nov 2007
    Location
    Northumberland
    Posts
    317
    Thank Post
    35
    Thanked 47 Times in 39 Posts
    Rep Power
    24
    On the properties of your website in IIS have you got your execute permissions set?

  14. #11

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173
    I gave up in the end and decided to use something else instead which didn't require PHP.

  15. #12
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    If you are getting a 404 error it is becouse thePHP file extensions are not enabled in IIS.

    To enable these open IIS and on the left had tree navigation menu click on Web Extensions, you will see PHP on the right hand side, highlight it and click on the enable button.

    Thats is although I would suggest a quick reboot.

    Now simply create a .php file with the following in:

    PHP Code:

    <?php

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

    ?>
    No access thefile via your web broswer and you should see a PHP info display.

  16. #13

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173
    I went through that lots of times but it just didn't want to work.

  17. #14

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    8,941
    Thank Post
    232
    Thanked 1,510 Times in 1,206 Posts
    Rep Power
    328
    I have used PHP on IIS6 so it is definitely possible (as already mentioned). Once you've loaded the PHP extension, try stopping and starting IIS6 services.

  18. #15

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    6,875
    Thank Post
    393
    Thanked 581 Times in 532 Posts
    Rep Power
    173
    I tried that too. I may try it again at some point this week now that I have removed it.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •