安装Apache:配置文件httpd.conf
位置:D:/Program Files/Apache Software Foundation/
--------------------
第一步在
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
后添加
LoadModule php5_module "d:\Program Files\php5\php5Apache2_2.dll"
--------------------------
第二步在
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
后添加
DocumentRoot "D:/www"
-------------------------
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/www">
------------------------
AddType application/x-httpd-php .php
#
# DefaultType: the default MIME type the server will use for a document
-------------------------
Listen 80
------------end---------------
DirectoryIndex index.php index.html
安装php5(PHP Version 5.2.8)
位置:D:/Program Files/php5/
将D:\Program Files\php5\*(所有dll文件).dll拷贝到C:\WINDOWS\system32
拷贝D:/Program Files/php5/php.ini-dist到C:\WINDOWS重命名为php.ini
修改php.ini
extension_dir = "D:/Program Files/php5/ext"
extension=php_mysql.dll
配置phpmyadmin
将D:\www\phpMyAdmin\libraries\config.default.php复制到D:\www\phpMyAdmin\下重命名为config.inc.php
修改config.inc.php
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin';
$cfg['blowfish_secret'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'http';//弹出对话框 或 'config' //不弹
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';