卡饭网 > win7 > 正文

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

来源:本站整理 作者:梦在深巷 时间:2013-09-29 19:22:28

正常情况下,我们在Windows系统中部署WEB服务器(iis)支持PHP是采用ISAPI通道。参照这篇文章“IIS环境下快速安装、配置和调试PHP5.2.0”

Windows7支持的IIS7中集成了FastCGI,这是理论上比CGI、ISAPI更快更稳定的访问通道。可参考这篇文章“IIS下PHP的ISAPI和FastCGI比较”

那么如何在IIS7中使用FastCGI部署PHP支持呢?

在浏览IIS官方网站(http://www.iis.net )发现一个很好的工具 PHP Manager for IIS 链接指向了这里:http://phpmanager.codeplex.com/

第一、在WIN7系统内安装IIS7(控制面板》程序和功能》点击左侧打开或关闭Windows功能》Internet信息服务),同时并支持CGI。

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

第二、下载PHP Manager 1.2 for IIS( http://phpmanager.codeplex.com/ releases/view/69115 )并进行安装

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

第三、打开IIS7进行PHP Manager进行配置

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

第四、单击“Register new PHP version”,弹出框中浏览选择“php-cgi.exe”

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

前提是需要在磁盘上保存有PHP相关文件 http://www.php.net/downloads.php

第五、建立IIS站点,并创建PHP测试文件

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

Win7 IIS7应用PHP Manager使用FastCGI通道快速部署PHP支持

*、可以在处理程序映射中看到PHP的支持采用了FastCGI通道

相关推荐