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

來源:互聯網
上載者:User

 

Extensions
----------
MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE, Session, WDDX and XML support is *built-in*.
You don't need to load any additional extensions in order to use these functions.

這些服務是內建的,你不必為使用這些函數而調入擴充模組

Installtion instructions
------------------------
安裝介紹

Apache:
1. Stop the Apache Webserver.

停止 Apache 伺服器

Edit the httpd.conf and put in these lines, modified to your environment:

編輯 http.conf 加上這些行,更改你的環境

2. Unzip the Package to c:php, now move php4ts.dll to the windows/system(32) directory, overwritte any older file!

展開壓縮包到 c:php, 把 php4ts.dll 移動到 windows/system(32)目錄下面,覆蓋任何老的檔案

# for the apache module

用於 apache 模組方式

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4

#for the cgi binary (you can use that one compiled with force cgi redirect too)

用於 cgi 方式

ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php

3. Copy the php.ini-dist to your sysroot (directory where you installed windows), rename it to php.ini, and
edit the php.ini to fit your needs.

複製 php.ini-dist 到你的系統目錄(安裝 windows 的目錄),改名字為 php.ini,同時編輯 php.ini 為你需要的配置

4. Restart the Apache server.

重新啟動 Apache 伺服器



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




Oreilly Wesite Pro:
1. First make sure that you got atleast Version 2.5

確認你得到的是 alleast 2.5 版本

2. Edit the Server Properties and select the tab "Mapping"

編輯服務器屬性,選擇 Mapping

3. From the List select "Associations" and enter the desired extension (".php") and the path to the cgi exe or the isapi dll

從列表中選擇 關聯("Associations"),輸入想要的副檔名(.php)和 cgi 方式的 exe 或者 isap 方式的 dll 檔案路徑

4. Now select "Content Types" add the same extension ".php" and enter the contenttype:

選擇 內容類型("Content Types")加入相同的副檔名 .php 輸入內容類型

cgi wwwserver/shellcgi
isapi wwwserver/isapi

5. Copy the php.ini-dist to your Systemroot (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 為你需要的配置

6. Edit the php.ini to fit your needs. // 此句重複:紫竹注釋



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



Xitami:
1. Copy the php.ini-dist to your Systemroot (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. Make sure the webserver is running, and point your browser to xitamis admin console (usually http://127.0.0.1/admin), and click on Configuration

確認web伺服器在運行,指向你的 xitamis 管理主控台(通常是http://127.0.0.1/admin),點擊配置

3. Now navigate to the Filters, and put the extension which php should parse (i.e. .php) into the field File extensions (.xxx)

轉到過濾器,在副檔名域裡加入你想要解析的副檔名(如 .php)

4. In Filter command or script put the path and name of your php executable i.e. c:phpphp.exe

在過濾器命令或指令碼處寫入 php 執行檔案路徑名(如c:phpphp.exe)

5. Press the 'Save' icon

儲存

IIS 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. Start the Microsoft Management Console or the Internet Services Manager, located in your Control Panel

運行控制面版裡面的 控制台管理或IIS服務管理程式,

3. Click on your webserver, and select properties

選擇 網頁伺服器,選擇屬性

4. If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters,
add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll

如果你不想執行使用PHP的 HTTP 證明,你可以跳過這一步。在 ISAPI 過濾器下面增加一個新的ISAPI過濾器。



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.