用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伺服器"),選擇屬性
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.