简体   繁体   English

在IIS 7上运行PHP应用程序

[英]running PHP application on IIS 7

i have a PHP application with microsoft access database, it works fine on apache server. 我有一个PHP应用程序与微软访问数据库,它在Apache服务器上工作正常。 however, i need to run it on a windows server with IIS 7, is this possible? 但是,我需要在带有IIS 7的Windows服务器上运行它,这可能吗?

Yes, you can run PHP on IIS. 是的,您可以在IIS上运行PHP。

http://php.iis.net/ http://php.iis.net/

I would advise using Zend Server community edition. 我建议使用Zend Server社区版。

http://www.zend.com/en/products/server-ce/ http://www.zend.com/en/products/server-ce/

It's free, it's reliable, it bundles zend optimizer (opcode cache) for good performance, and it has a web-based admin console. 它是免费的,它是可靠的,它捆绑了zend优化器(操作码缓存)以获得良好的性能,并且它有一个基于Web的管理控制台。 It's a simplified off-shoot of their professional server product. 这是他们专业服务器产品的简化折扣。

Yes you can. 是的你可以。 Be sure to delete your Apache configuration files (.htaccess files) as they can cause permission problems and read up on how to translate them to the IIS web.config file. 请务必删除Apache配置文件(.htaccess文件),因为它们可能会导致权限问题并阅读有关如何将它们转换为IIS web.config文件的信息。

Here's a good article on that topic: 这是一篇关于该主题的好文章:

Translate .htaccess Content to IIS web.config 将.htaccess内容转换为IIS web.config

I put a test application PHP with MS Access database on an ASP.net hosting. 我在ASP.net托管上放了一个带有MS Access数据库的测试应用程序PHP。 i treated it like a classic ASP application, it worked just fine. 我把它当成一个经典的ASP应用程序,它工作得很好。 you just need to add "index.php" as a default document. 你只需要添加“index.php”作为默认文件。

update (1) i tested it locally on a vm, you may need to disable impersonation and add the following to web.config 更新(1)我在虚拟机上本地测试它,您可能需要禁用模拟并将以下内容添加到web.config

<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM