JDP 發表於 2005-5-9 16:19:19

Apache 2 + PHP 4 + Mysql 4.0.x + Zend Optimizer for Windows

1.安裝apache2 -> d:\httpd\apache2
2.安裝php4 -> d:\httpd\php4
3.編輯d:\httpd\apache2\conf\httpd.conf
4.搜尋 DirectoryIndex 在最後加入 index.phpDirectoryIndex index.html index.html.var index.php index.htm在最後加入LoadModule php4_module "d:/httpd/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "d:/httpd/php"5.copy d:\httpd\php4\php-dist.ini -> php.ini
6.copy d:\httpd\php4\dlls\*.dll -> c:\windows\system32 或是在[環境變數]的Path後面加上D:\httpd\php4;d:\httpd\php4\dlls
7.編輯 php.ini - 修改extension_dir="d:\httpd\php4\extensions"將需要用之extension前的;拿掉
8.安裝mysql -> d:\httpd\mysql
9.安裝Zend Optimizer -> d:\httpd\php4\Zend
10.把 PHP5 目錄中的 libmysql.dll 複製到 \windows\system32 裡面

未來如重灌或移轉Server執行以下批次檔
install4.bat@echo off
D:\httpd\Apache2\bin\Apache -k install
D:\httpd\Apache2\bin\Apache -k start
D:\httpd\Apache2\bin\ApacheMonitor.exe
D:\httpd\mysql\bin\mysqld --install

JDP 發表於 2010-6-18 00:52:50

mysqld-nt --install --defaults-file="E:\Program Files\mysql-5.0.27\my.ini"
頁: [1]
查看完整版本: Apache 2 + PHP 4 + Mysql 4.0.x + Zend Optimizer for Windows