康柏仕电脑学院Microsoft Windows交流平台硬件及网络技术资料储存区 → IIS组建与配置-Win2003+IIS6.0环境下安装PHP


  共有12939人关注过本帖树形打印复制链接

主题:IIS组建与配置-Win2003+IIS6.0环境下安装PHP

帅哥哟,离线,有人找我吗?
轻轻风聆
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 家人主人
等级:管理员 帖子:2677 积分:26185 威望:0 精华:14 注册:2005/9/15
IIS组建与配置-Win2003+IIS6.0环境下安装PHP  发帖心情 Post By:2009/2/12 10:00:53 [只看该作者]

从http://www.php.net上下载PHP,再将其解压到c:\php下;

  将“php.ini-recommended”重命名为“php.ini”之后将其移动到C:\WINDOWS;

  将php4ts.dll移动到C:\WINDOWS\System32;

  进入“控制面板”? “管理工具”(Administrative Tools);

  双击“Internet信息服务”管理器(IIS Manager):

  1)、点击“Web服务扩展”(Web Service Extensions)并选择添加一个新的Web服务扩展,如下图:
1.gif (2007-04-20 09:34, 10.34 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />

  2)、将路径添加到php4isapi.dll中:
2.gif (2007-04-20 09:34, 10.9 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />


3)、点击设置扩展状态:

3.gif (2007-04-20 09:34, 10.95 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />

  4)、右击“缺省Web站点”(Default Web Site)后选择“属性”(Properties):


4.gif (2007-04-20 09:34, 9.13 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />

  5)、进入主目录标签(Home Directory),设置允许执行脚本和可执行程序:

5.gif (2007-04-20 09:34, 11.59 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />

  6)、点击“配置”选项(Configuration)?“添加”(Add):
  
6.gif (2007-04-20 09:34, 14.85 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />
  7)、正确地填写:Executable: browse to the php4isapi.dll and the Extension: .php;取消文件存在核实复选标记,只保留脚本引擎:

7.gif (2007-04-20 09:34, 12.95 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />




  8)、进入“文档”(Documents)标签,添加index.php并将其置顶;

  9)、进入命令提示符:开始 运行 cmd



8.gif (2007-04-20 09:34, 4.68 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />

10)、在命令提示符中键入:iisrestart


9.gif (2007-04-20 09:34, 4.58 K)
screen.width*0.5) {this.resized=true; this.width=screen.width*0.5;}" alt="" />

  11)、NT安全性:在wwwroot和php目录中添加可阅读、执行的IUSR_YourMachineName;

  12)、为了检测PHP是否正在运行,编写一个名为phpinfo.php,内容为如下简PHP脚本:的文件,再将其复制到wwwroot目录中。

  尝试从浏览器中调用该文件就可以观察PHP是否生效。

  如果PHP还没有运行,试图从http://www.php.net/downloads.php运行Windows Installer,再从头重复所有步骤。

  就是这么简单!


正航--放大你管理的力量!
正航,缔造智慧企业!
正航东莞-松山湖、长安:www.chidg.com
咨询热线:0769-81158210  13580877608
 回到顶部