Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I need to run PHP applications on IIS?

Having been a PHP developer on LAMP servers for quite a while, is there anything that I will need to take into consideration while preparing an application for IIS on windows.

like image 333
UnkwnTech Avatar asked Aug 14 '08 00:08

UnkwnTech


2 Answers

@pix0r

That actually annoyed the hell out of me too and nothing came close to Apache mod_rewrite. Because they all have this overly complex XML structure. So I actually took the time and wrote my own rewriter for IIS 6.0 and IIS 7.0. Non-.NET applications only works in IIS 7.0.

http://www.managedfusion.com/products/url-rewriter/

http://www.codeplex.com/urlrewriter

like image 151
Nick Berardi Avatar answered Sep 24 '22 00:09

Nick Berardi


We just rolled out PHP 5.2.6 + FastCGI on our shared hosting platform without any problems. As long as you follow the steps outlined in the article Nick linked to then you should be just fine.

My only additional piece of advice would be to forget about using the fcgiconfig.js script to modify the fcgiext.ini file, it's more of a hindrance than a help. Just edit it by hand, you also learn more about how it works.

If you're installing PHP onto IIS 7 then this link should be worth a read though:

Using FastCGI to Host PHP Applications on IIS 7

like image 42
Kev Avatar answered Sep 25 '22 00:09

Kev