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 ...
17th June 2008, 10:27 PM #1
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.
18th June 2008, 08:49 AM #2
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!
Thanks to StewartKnight from:
18th June 2008, 08:53 AM #3
I have XAMPP and IIS running on the same web server. Just change the ports in IIS to 8080.
Thanks to clarky2k3 from:
18th June 2008, 08:55 AM #4
2 Thanks to Quackers:
clarky2k3 (18th June 2008), Edu-IT (18th June 2008)
18th June 2008, 02:30 PM #5
I've followed those instructions exactly but I just get a 404 page not found whenever I try to view a PHP page.
18th June 2008, 04:34 PM #6
Are the permissions the filesystem set right, IUSR_(whatever it is) should be allowed to read the files
18th June 2008, 07:37 PM #7
Yes they are.
Originally Posted by Jackd
18th June 2008, 08:50 PM #8
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?
18th June 2008, 08:53 PM #9
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.
19th June 2008, 02:36 PM #10
On the properties of your website in IIS have you got your execute permissions set?
19th June 2008, 11:21 PM #11
I gave up in the end and decided to use something else instead which didn't require PHP.
22nd June 2008, 08:30 PM #12
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:
No access thefile via your web broswer and you should see a PHP info display.
// Show all information, defaults to INFO_ALL
22nd June 2008, 10:09 PM #13
I went through that lots of times but it just didn't want to work.
22nd June 2008, 11:07 PM #14
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.
22nd June 2008, 11:35 PM #15
I tried that too. I may try it again at some point this week now that I have removed it.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)