Edu-IT Posted June 17, 2008 Posted June 17, 2008 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.
StewartKnight Posted June 18, 2008 Posted June 18, 2008 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! 1
clarky2k3 Posted June 18, 2008 Posted June 18, 2008 I have XAMPP and IIS running on the same web server. Just change the ports in IIS to 8080. 1
Quackers Posted June 18, 2008 Posted June 18, 2008 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. 2
Edu-IT Posted June 18, 2008 Author Posted June 18, 2008 I've followed those instructions exactly but I just get a 404 page not found whenever I try to view a PHP page.
Jackd Posted June 18, 2008 Posted June 18, 2008 Are the permissions the filesystem set right, IUSR_(whatever it is) should be allowed to read the files
Edu-IT Posted June 18, 2008 Author Posted June 18, 2008 Are the permissions the filesystem set right, IUSR_(whatever it is) should be allowed to read the files Yes they are.
Edu-IT Posted June 18, 2008 Author Posted June 18, 2008 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?
Quackers Posted June 18, 2008 Posted June 18, 2008 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.
clarky2k3 Posted June 19, 2008 Posted June 19, 2008 On the properties of your website in IIS have you got your execute permissions set?
Edu-IT Posted June 19, 2008 Author Posted June 19, 2008 I gave up in the end and decided to use something else instead which didn't require PHP.
ICTNUT Posted June 22, 2008 Posted June 22, 2008 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: // Show all information, defaults to INFO_ALL phpinfo(); ?> No access thefile via your web broswer and you should see a PHP info display.
Edu-IT Posted June 22, 2008 Author Posted June 22, 2008 I went through that lots of times but it just didn't want to work.
Michael Posted June 22, 2008 Posted June 22, 2008 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.
Edu-IT Posted June 22, 2008 Author Posted June 22, 2008 I tried that too. I may try it again at some point this week now that I have removed it.
AndyD Posted July 5, 2008 Posted July 5, 2008 Although I have installed PHP on IIS6, I found Zend Core very good.
zag Posted July 7, 2008 Posted July 7, 2008 Just install xamp, takes 10mins and does all the permission stuff for you
mattmoo Posted July 16, 2008 Posted July 16, 2008 I can fix this for your if you have RemoteDesktop accessible? I have done this on 3 seperate occasions with different setups, its usually something similar thats not set properly. Send me a PM if you want me to give it a go
karldenton Posted April 22, 2009 Posted April 22, 2009 Was there ever a solution to this? Trying to install Joomla to test and get a 404 when I view any of the PHP Files. PHP Extension allowed in IIS.
Cools Posted April 22, 2009 Posted April 22, 2009 [ame=http://www.youtube.com/watch?v=17aAuMVippQ]YouTube - How to Install PHP5 on Windows 2003 with IIS6 Web Server[/ame]
Cravon Posted April 22, 2009 Posted April 22, 2009 All i did was install PHP v.5, restarted (just incase), then went to IIS - Web Service Extensions, started/allowed the PHP: hypertext processor, checked the properties - required file location, making sure it had C:\location php waht installed to\php-cgi.exe and it was allowed, restarted the server to make doubley sure i had not missed a service and it worked. hope that helps
karldenton Posted April 22, 2009 Posted April 22, 2009 Thanks. I've allowed PHP in IIS. WHat should be the required fields in the properties? I currently have php5ts.dll pointing to C:/Program Files What do you mean by the php-cgi.exe?
theriver Posted April 22, 2009 Posted April 22, 2009 If it helps anyone: I have vague memories of having a horrendous time getting PHP (5.2.5) working on as IIS6 machine. This was installing ISAPI, not CGI, by the way. If memory serves I'd followed all the guides to the letter and kept getting 404 errors, but eventually found one that mentioned quote marks: Open IIS Manager. Right click on the Web Site and select Properties. From the Home Directory tab click the Configuration button. Click Add to add an Application Extension. Enter "c:\PROGRAM FILES\PHP\PHP5ISAPI.DLL" (wrapped in double quotes) as Executable and PHP as Extension. Leave the rest as default and click Ok And that did the trick.
browolf Posted April 22, 2009 Posted April 22, 2009 i always found it a lot easier to install on a 2000 server
karldenton Posted April 22, 2009 Posted April 22, 2009 If it helps anyone: I have vague memories of having a horrendous time getting PHP (5.2.5) working on as IIS6 machine. This was installing ISAPI, not CGI, by the way. If memory serves I'd followed all the guides to the letter and kept getting 404 errors, but eventually found one that mentioned quote marks: Open IIS Manager. Right click on the Web Site and select Properties. From the Home Directory tab click the Configuration button. Click Add to add an Application Extension. Enter "c:\PROGRAM FILES\PHP\PHP5ISAPI.DLL" (wrapped in double quotes) as Executable and PHP as Extension. Leave the rest as default and click Ok And that did the trick. Thanks but when I try with the quotes it says that specific characters are not allowed. When installing PHP, which web server do I need to select?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now