PHP 4.04 在window/nt/2000下各种服务器的安装方法(2)

80酷酷网    80kuku.com

  

 

PHP作为过滤器名字,提供 phpisapi.dll的路径

5. Under Home Directory, click on the Configuration button. Add a new entry to the Application Mappings. Use the path the
php4isapi.dll as the Executable, supply .php as the extension, leave Method exclusions, blank, and check the Script engine
checkbox

在主(home)目录,点击配置按钮。增加一个新的程序映射入口。使用php4isapi.dll路径作为执行, .php 为扩展名,执行模式为空,选中脚本引擎

6. Stop IIS completely

完全停止 IIS

7. Start IIS again

重新启动 IIS



------------------------------------------------------------------------------------------


IIS 4.0+ (CGI)
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs

复制 php.ini-dist 到你的系统目录(安装 windows 的目录),改名字为 php.ini,同时编辑 php.ini 为你需要的配置

2. Start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0
Option Pack branch or the Control Panel->Administrative Tools under Windows 2000).

运行 控制台管理(可能为 IIS服务管理器,在你的 windows NT 4.0 Option Pace 部分,或者win2000 的控制面版下的超级用户工具下)

3. Right click on your Web server node (will most probably appear as 'Default Web Server'), and select 'Properties'.

右键点击你的 web 服务器节点(大多数可能显示为"默认WEB服务器"),选择属性

4. Under 'Home Directory', click on the 'Configuration' button.

在主目录下,选择'配置'按钮

5.Add a new entry to the Application Mappings; Use the path to php.exe as the Executable, supply .php as the extension, leave
'Method exclusions', blank, and check the Script engine checkbox.

在主(home)目录,点击配置按钮。增加一个新的程序映射入口。使用php4isapi.dll路径作为执行, .php 为扩展名,执行模式为空,选中脚本引擎

6. Put a .php file under your Web server's document root and check if it works!

web主目录放一个 .php 文件,测试是否工作


------------------------------------------------------------------------------------------



PWS 4.0+ (isapi):
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs

复制 php.ini-dist 到你的系统目录(安装 windows 的目录),改名字为 php.ini,同时编辑 php.ini 为你需要的配置

2. Edit the enclosed PWS-php4isapi.reg (ISAPI interface) or PWS-php4cgi.reg (CGI interface) file to reflect the location of
your php4isapi.dll / php.exe. Forward slashes should be escaped, for example:
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map] ".php"="C:Program FilesPHPphp4isapi.dll"

编辑附带的 PWS-php4isapi.reg (ISAPI 界面) 或者 PWS-php4cgi.reg (CGI 界面)文件来指出你的 php4isapi.dll php.exe 路径,右斜杠需要转义。

3. In the PWS Manager, right click on a given directory you want to add PHP support to, and select Properties. Check the 'Execute' checkbox, and confirm.

PWS管理,右键点击想支持 php 的路径,选择属性,选中执行。确认。


------------------------------------------------------------------------------------------


PWS 4.0+ (CGI):
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs

复制 php.ini-dist 到你的系统目录(安装 windows 的目录),改名字为 php.ini,同时编辑 php.ini 为你需要的配置

2. Edit the enclosed PWS-php4.reg file to reflect the location of your php.exe. Forward slashes should be escaped,
for example:
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map] ".php"="C:Program FilesPHPphp.exe"

编辑附带的 PWS-php4isapi.reg (ISAPI 界面) 或者 PWS-php4cgi.reg (CGI 界面)文件来指出你的 php4isapi.dll php.exe 路径,右斜杠需要转义。

3. In the PWS Manager, right click on a given directory you want to add PHP
support to, and select Properties. Check the 'Execute' checkbox, and
confirm.

PWS管理,右键点击想支持 php 的路径,选择属性,选中执行。确认。

4. At this point, PWS should have built-in PHP support.



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: