PHP 4.04 在window/nt/2000下各種伺服器的安裝方法(2)

來源:互聯網
上載者:User

 

用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.



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.