国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > Apache > 正文

apache2.0.39 php4.2.3在windowsXP下模塊方式搭建.

2024-08-27 18:28:41
字體:
來源:轉載
供稿:網(wǎng)友
windowsxp+apache2.0.39+php-4.2.3-dev
源文件下載:
1. http://www.apache.org/dist/httpd/binaries/win32/
下面的 apache_2.0.39-win32-x86-no_ssl.msi
或者apache_2.0.39-win32-x86-no_ssl.exe

(a full setup package (.exe) containing the win9x/winnt
microsoft system installer installer is available.
if the microsoft system installer is already on the machine,
there is no need to download the .exe, save yourself 3mb and
download the .msi package.)

2. http://snaps.php.net/win32/php4-win32-stable-latest.zip

安裝服務器和php:
1.選中下載的apache的msi文件,單擊右鍵選擇安裝,默認方式即可
2.解壓縮php4-win32-stable-snapshotnumber.zip,得到
php4-win32-stable-snapshotnumber文件夾,重命名為php,并
復制到c:下.
3.將c:php下的php4ts.dll復制到c:wondowssystem32下(即path環(huán)境變量的
第一個路徑名)
(4.將c:phpdll下所有.dll文件復制到c:wondowssystem32下.)見下面
配置php.ini和http.conf
1.將c:phpphp.ini-dist復制到c:windows下,改名為php.ini
2.打開php.ini文件,找到'doc_root='項,置為
doc_root="c:program filesapache groupapache2htdocs"
即在這個目錄(apache服務器主文檔目錄)下的php文件才可以執(zhí)行.
找到'extension_dir='項,置為
extension_dir ="c:phpsapi"這里面有擴展庫的.dll文件(注意,
當網(wǎng)頁不能執(zhí)行,給出錯誤不能找到.dll文件時,將c:phpsapi下所有
.dll復制到c:windowssystem32下).
保存php.ini并退出編輯.
3.打開c:progame filesapache groupapache2confhttpd.conf
確保servername 設置好(最起碼localhost),
找到一系列 loadmodule開頭的指令項,在最后加入如下內容:

loadmodule php4_module c:/php/sapi/php4apache2.dll
<filesmatch ".php$">
setoutputfilter php
</filesmatch>

接下來找到addtype application/x-tar.tgz 指令,在其后加入:

addtype application/x-httpd-php .php

保存httpd.conf,并退出編輯.
重啟apache2服務
可以在命令行方式下鍵入:
net stop apache2
net start apache2


在....htdocs/目錄下加入.php文件如index.php,在瀏覽器地址欄內鍵入
http://localhost/index.php
試試看,希望你好運!!

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 即墨市| 开原市| 荔浦县| 刚察县| 宜丰县| 河东区| 西昌市| 固阳县| 南和县| 冕宁县| 日喀则市| 九江市| 高阳县| 长岛县| 崇州市| 南涧| 方城县| 德州市| 漳平市| 岳西县| 密云县| 米脂县| 万载县| 郁南县| 襄垣县| 炎陵县| 尼勒克县| 泰宁县| 三台县| 雅安市| 广元市| 高州市| 仪陇县| 博兴县| 萝北县| 西吉县| 会昌县| 安康市| 江孜县| 榆中县| 蒙自县|