手动配置IIS以使用PHP [英] Manual cofiguring of IIS to use PHP

查看:113
本文介绍了手动配置IIS以使用PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何手动配置IIS与PHP一起使用?

How is manual configuration of IIS for use with PHP done?

推荐答案

为什么手动?嗯,这可能听起来很奇怪,但是Microsoft文档比 http://php.net [的文档更倾向于手动。 =http://php.nettarget =_ blanktitle =新窗口> ^ ]:



http://www.iis.net/learn/application -frameworks / install-and-configure-php-on-iis / install-and-configure-php [ ^ ],

http://php.net/manual/en/install.windows.iis7.php [ ^ ]。



PHP,尽管语言本身明显蹩脚,但通常提供易于集成的安装程序主要的HTTP服务器,包括Apache和IIS。如果你真的需要看看手动安装的是什么,你可以紧接着只使用一次PHP安装,然后查看结果配置文件以了解它是如何完成的。



有关记录:我几乎无法理解为什么有人会为PHP安装IIS。只有使用ASP.NET,或者说,PHP和ASP.NET的组合才有意义。即使对于ASP.NET,也有开源的Mono和mod_mono。最强大和最知名的通用HTTP服务器可能是Apache; IIS更笨重,并且会产生更多问题。特别是如果你打算只使用PHP。



-SA
Why manual? Well, it may sound weird, but Microsoft documentation is more oriented to "manual" than the documentation of http://php.net[^]:

http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/install-and-configure-php[^],
http://php.net/manual/en/install.windows.iis7.php[^].

PHP, despite of the apparent lame of the language itself, is usually provides installation procedure with easy integration with major HTTP servers including Apache and IIS. If you really need to see how everything is installed manually, you can, in a pinch, just use the PHP installation just once, and look at resulting configuration files to see how it's done.

For a record: I hardly can understand why would anyone install IIS for just PHP. It would make sense only if ASP.NET is used, or, say, combination of PHP and ASP.NET. And even for ASP.NET, there is the open-source Mono and mod_mono. The most robust and reputed general-purpose HTTP server is probably Apache; IIS is much bulkier and creates a lot more problems. Especially if you plan to use just PHP.

—SA


这篇关于手动配置IIS以使用PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆