問題描述
在 Windows 上運(yùn)行 PHP 5/Zend MVC 生產(chǎn)應(yīng)用程序有什么需要注意的主要問題嗎?特定的應(yīng)用程序是 Magento,一個(gè)電子商務(wù)系統(tǒng),客戶對(duì)在他們的數(shù)據(jù)中心安裝 Linux 機(jī)器真的不感興趣.有沒有人有幸讓 PHP 5 和 Zend MVC 在 IIS 上正常工作?
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?
推薦答案
是的,它有效.Microsoft 和 Zend 正在合作使 PHP 能夠像在 Linux 上一樣運(yùn)行.Zend 甚至為 Windows 和 iis 提供了其核心包(包括 php、mysql 和一些控制面板)的認(rèn)證版本.此外,Zend Framework 應(yīng)該是真正獨(dú)立于平臺(tái)的.
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.
另一種選擇是在 Windows 上使用 Apache,但 IIS 對(duì)于靜態(tài)頁(yè)面查看速度更快,并且還有一些其他有趣的選項(xiàng).不支持.htaccess文件,重寫需要依賴其他IIS組件.
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.
這篇關(guān)于Windows 和 IIS 上的 PHP 5 和 Zend MVC的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!