2007年10月24日星期三

WAMP配置

A.安装apache,在安装目录下找到htdoc文件夹,将下面的一个文件的扩展名改为.html,若成功安装在IE输入127.0.0.1可打开apache的一个页面。
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