PHP 5 and Zend MVC on Windows and IIS

2019-02-05 09:57发布

Are there any major issues to be aware of running a PHP 5 / Zend MVC production application on Windows? The particular application is Magento, an ecommerce system, and the client is really not interested in having a Linux box in their datacenter. Has anyone had luck getting PHP 5 and Zend MVC working correctly on IIS?

5条回答
ら.Afraid
2楼-- · 2019-02-05 10:08

We've also made some progress in getting Magento running on a Windows Server 2008 box with IIS7 (under ISAPI). If we disable URL rewriting the system works quite well however we've not been able to achieve success with Magento and any of rewriting systems (Helicon ISAPI Rewrite-Lite, Ape and the Microsoft Rewrite Module).

查看更多
ゆ 、 Hurt°
3楼-- · 2019-02-05 10:15

Well I got IIS, Zend and PHP all working nicely.

Installed the ReWrite module, followed :this article Got the Zend re-write rule from here and ensured short_opentag = on in my php.ini

So far so good

查看更多
霸刀☆藐视天下
4楼-- · 2019-02-05 10:18

Get the IIS ReWrite module which will make things a little easier.

http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1691

I have Zend, PHP, Apache and MySQL running on my Vista x64 machine but I will give it a try on running it on IIS instead of Apache.

I imagine it wouldn't be too difficult

查看更多
Summer. ? 凉城
5楼-- · 2019-02-05 10:22

Yes, it works. Microsoft and Zend are working together to get PHP running as it runs on linux. Zend even has a certified version of their core package (includes php, mysql and some control panel) for Windows and iis. Also Zend Framework is supposed to be truly platform independend.

Another option instead is to use Apache on Windows, but IIS is faster for static page views and also has some other interesting options. .htaccess files are not supported, so for rewriting you need to rely on other IIS components.

查看更多
Melony?
6楼-- · 2019-02-05 10:27

Magento is not supported on windows. I did install it but is more complicated than linux and it makes no sense in developing in an environment that will be different than the deployment one. Your client should reconsider.

查看更多
登录 后发表回答