安装版本为apache2.2
1 启动安装程序后.
2 在用户须知的下个页面需要填写三行信息 ,分别为域名,服务器名称和网络管理员的邮箱地址.可以任意填写. 下面两行选择for all users . next继续
3 选择安装类型,Typical 为默认安装,Custom 为用户自定义安装,我们这里选择Custom,有更多可选项。按“Next”继续.
4 出现选择安装选项界面,左键点选“Apache HTTP Server 2.2.55”,选择“This feature,and all subfeatures, will be installed on local hard drive.”,即“此部分,及下属子部分内容, 全 部安装在本地硬盘上”。点选“Change...”,手动指定安装目录。 我选择安装在D盘根目录.
5 确认安装.
配置服务器
1安装成功后,右下角出现appache图标. 左键点击后有 启动,关闭,重启三个选项. 每次重新配置appache后需要将服务器重启
2 在浏览器地址栏打http://127.0.0.1 可以显示当前网站界面
3 "开始”、“所有程序”、“Apache HTTP Server 2.0.55”、“Configure Apache Server”、“Edit the Apache httpd conf Configuration file”,点击打开。 在出现的记事本文件中搜索
DocumentRoot , 通过修改" "号中的内容可以改变网站的根目录.
原文:http://blog.csdn.net/ltianchao/article/details/19400729