What do I need to run PHP applications on IIS?

后端 未结 7 845
花落未央
花落未央 2021-02-09 08:09

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 w

相关标签:
7条回答
  • 2021-02-09 08:24

    If your using iis 7 keep an eye on this project, http://phpmanager.codeplex.com/.

    0 讨论(0)
  • 2021-02-09 08:25

    One of the major sticking points I've had with IIS is the lack of Apache's mod_rewrite. There are other work-arounds and work-alikes depending on what you're doing, but just keep in mind that you'll need to change things up a bit to work with IIS if you're using mod rewrite extensively.

    0 讨论(0)
  • 2021-02-09 08:35

    @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

    0 讨论(0)
  • 2021-02-09 08:42

    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

    0 讨论(0)
  • 2021-02-09 08:42

    Since you're moving from LAMP (a somewhat cool acronym) to WIMP (a less cool one), you may need to mentally affirm yourself. Otherwise, I've had very little trouble with PHP on Windows.

    ISAPI rewrite (http://www.isapirewrite.com/) is $99 and has worked very well for me for URL rewriting.

    0 讨论(0)
  • 2021-02-09 08:43

    Why not go with Apache on Windows?

    0 讨论(0)
提交回复
热议问题