Windows 和 IIS 上的 PHP 5 和 Zend MVC
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/543777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PHP 5 and Zend MVC on Windows and IIS
提问by Abdullah Jibaly
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?
在 Windows 上运行 PHP 5 / Zend MVC 生产应用程序有什么需要注意的主要问题吗?特定的应用程序是 Magento,一个电子商务系统,客户对在他们的数据中心安装 Linux 机器真的不感兴趣。有没有人有幸让 PHP 5 和 Zend MVC 在 IIS 上正常工作?
采纳答案by TomHastjarjanto
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.
是的,它有效。Microsoft 和 Zend 正在合作使 PHP 能够像在 Linux 上一样运行。Zend 甚至为 Windows 和 iis 提供了其核心包(包括 php、mysql 和一些控制面板)的认证版本。此外,Zend Framework 应该是真正独立于平台的。
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.
另一种选择是在 Windows 上使用 Apache,但 IIS 的静态页面视图速度更快,并且还有一些其他有趣的选项。.htaccess 文件不受支持,因此重写需要依赖其他 IIS 组件。
回答by Gautam
Well I got IIS, Zend and PHP all working nicely.
好吧,我让 IIS、Zend 和 PHP 都运行良好。
Installed the ReWrite module, followed :this articleGot the Zend re-write rule from hereand ensured short_opentag = on in my php.ini
安装了重写模块,遵循:这篇文章从这里得到了 Zend 重写规则 并确保我的php.ini 中的short_opentag = on
So far so good
到现在为止还挺好
回答by Gautam
Get the IIS ReWrite module which will make things a little easier.
获取 IIS ReWrite 模块,这将使事情变得更容易一些。
http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1691
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.
我在我的 Vista x64 机器上运行 Zend、PHP、Apache 和 MySQL,但我会尝试在 IIS 而不是 Apache 上运行它。
I imagine it wouldn't be too difficult
我想这不会太难
回答by Gautam
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).
我们还在使用 IIS7(在 ISAPI 下)在 Windows Server 2008 机器上运行 Magento 方面取得了一些进展。如果我们禁用 URL 重写,系统运行良好,但是我们无法在 Magento 和任何重写系统(Helicon ISAPI Rewrite-Lite、Ape 和 Microsoft 重写模块)上取得成功。
回答by Elzo Valugi
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.
Windows 不支持 Magento。我确实安装了它,但它比 linux 更复杂,并且在与部署环境不同的环境中进行开发毫无意义。你的客户应该重新考虑。