PHP4.04簡明安裝_PHP教程

來源:互聯網
上載者:User
PHP 4.04 用了已經一段時間了,感覺很好,特別是這個 3M 多的完整版本內建了很多好東東。但是看到有不少朋友還在用老的版本,特此推薦。

地址:http://www.php.net/downloads.php
PHP 4.0.4 - 19 December 2000
(3.79 Mb CGI binary and ISAPI module included, MySQL support built-in, many
extensions included, packaged as zip)
(3.79 Mb 已經包含了 CGI 和 ISAPI 模組,內建對 MySQL 的支援,包含了許多擴充模
塊,Zip 格式)

附帶的說明 E 文太長了,現在只說一下在 Apache 下的安裝(大多數人都用 Apache
的吧?):
先假設 Apache 安裝在 c:\Apache 下,PHP 解壓到 c:\PHP 下,windows 目錄是
c:\windows (win98) 或者 c:\winnt (win2000)。
1. 關閉 Apache.
編輯 c:\Apache\conf\httpd.conf ,根據你的情況加入這幾行:
2. 把 c:\PHP\php4ts.dll 拷到 c:\windows\system\ (win98) 或者
c:\winnt\system32 (win2000) 下,覆蓋任何原有檔案。

# 以 Apache 模組方式安裝,在 httpd.conf 中加入如下幾行:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
(是不是比用那個 mod_php4-4.x.zip 方便多了)

# 以 CGI 方式安裝,在 httpd.conf 中加入如下幾行:
ScriptAlias /php/ "C:/php/"
Action application/x-httpd-php4 "/php/php.exe"
AddType application/x-httpd-php4 .php

3. 把 c:\php.ini-dist 拷到 c:\windows\ (win98) 或者 c:\winnt\ (win2000), 改
名為 php.ini, 根據你的需要編輯它。
必須要改的是 extension_dir = c:/php

4. 重起 Apache.

http://www.bkjia.com/PHPjc/316319.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/316319.htmlTechArticlePHP 4.04 用了已經一段時間了,感覺很好,特別是這個 3M 多的完整版本內建了很多好東東。但是看到有不少朋友還在用老的版本,特此推薦。...

  • 聯繫我們

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