標籤:
一,準備工具。
httpd-2.4.12-win32-VC9.zip
php-5.4.40-Win32-VC9-x86.zip
phpMyAdmin-4.2.13.2-all-languages
mysql-5.6.23-winx64 配置參照: http://blog.csdn.net/q98842674/article/details/12094777
二,環境搭建。
1,解壓httpd-2.4.12-win32-VC9.zip。將Apache24放到D盤。
2,配置D:\Apache24\conf\httpd.conf. 主要是修改路徑
ServerRoot "D:/Apache24"
DocumentRoot "D:/Apache24/htdocs"
<Directory "D:/Apache24/htdocs">
<Directory "D:/Apache24/cgi-bin">
3,插入服務。
見包中的說明檔案。包括VC運行時的下載。
4,解壓php-5.4.40-Win32-VC9-x86.zip將放到D盤php檔案夾中。將php.ini-development複製改名為php.ini。並修改
去掉前面的分號
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
寫上ext目錄的路徑
extension_dir = "D:/php/ext"
5,添加環境變數:path:D:\php;D:\php\ext;
6,在D:\Apache24\conf\httpd.conf末尾處增加
LoadModule php5_module "D:/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "D:/php"
7,重啟服務OK。
8,解壓phpMyAdmin-4.2.13.2-all-languages。
9,在D:\Apache24\htdocs\phpMyAdmin\libraries\config.default.php找到這個檔案php檔案。
10,複製到D:\Apache24\htdocs\phpMyAdmin\目錄下,重新命名為config.inc.php
11,修改config.inc.php檔案。
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;
/**
* MySQL password (only needed with ‘config‘ auth_type)
*
* @global string $cfg[‘Servers‘][$i][‘password‘]
*/
$cfg[‘Servers‘][$i][‘password‘] = ‘123456‘;
12,重啟服務OK。
13,如果遇到一些問題(包括一些檔案的下載),請參考一下網址:
http://www.douban.com/note/241182725/?type=rec
http://www.apachelounge.com/download/
http://windows.php.net/downloads/releases/
http://www.cnblogs.com/tigertall/archive/2010/01/28/1658869.html
http://secsky.sinaapp.com/91.html
http://www.cnblogs.com/Peter-Zhang/archive/2012/12/10/2810915.html
http://windows.php.net/download
http://httpd.apache.org/docs/2.4/
Apache+php+mysql+phpadmin搭建