1) Install apache_2.0.59-win32-x86-no_ssl.msi ; php-5.2.0-Win32.zip ; mysql-essential-5.0.21-win32.msi
2) bakup apache2\conf\httpd.conf
3) edit httpd.conf,add following lines:
LoadModule php5_module “D:/program files/php5/php5apache2.dll”
AddType application/x-httpd-php .php
AddDefaultCharset GB2312
4) modify:
DocumentRoot “D:/Program Files/Apache Group/Apache2/htdocs” to
DocumentRoot “E:/My Documents/php projects”
5) add:
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
6) copy php5/php.ini to %system%\php.ini
7) decomment:
extension=php_mysql.dll
extension=php_gd2.dll
8) modify:
extension_dir = “./” to
extension_dir = “c:/php5/” ;where your extension files reside
—
推荐
One Click Apache+MySQL+PHP Installer
http://wamp.sourceforge.net/