B.下载PHP的zip包,若解压到E:/php
将php.ini.dist 另存为php.ini
打开php.ini
[bash]
extension_dir="e:\php\ext"
[/bash]
copy php.ini 到c:/windows 下
copy libmysql.dll 到c:/windows/system32下
C. 打开apache的配置文件httpd.conf
[bash]
LoadModule php5_module "e:\php\php5apache2.dll"
PHPIniDir "e:\php"
DirectoryIndex index.php
AddType application/x-httpd-php .php
[/bash]
D.增加环境变量
e:\php;e:\php\ext