Windows XP 安装 WAMP(一):安装 apache 2.2.15
WAMP 指的是 Windows Apache MySql PHP 四者合一。下面介绍 apache 的安装。下载 apache 安装程序
打开网址:http://apache.freelamp.com/httpd/binaries/win32/,选择其中的 httpd-2.2.15-win32-x86-no_ssl.msi 文件下载。
http://a.imagehost.org/0666/apache_download.jpg
进行 apache 安装
双击 apache 安装程序,开始安装。
http://j.imagehost.org/0141/apache_install.jpg
点击下一步,接受许可协议。
http://i.imagehost.org/0483/apache_agreement.jpg
点击下一步。
http://j.imagehost.org/0896/apache_read.jpg
填写服务器信息。由于是在本机上作试验用,所以可以随便填写。下面有2个选择 apache 使用的端口,推荐使用端口80。
http://i.imagehost.org/0279/apache_info.jpg
安装模式。有2种选择:Typical 典型安装,没有特殊需要,一般选择 Typical 安装即可;Custom 自定义安装建议高级用户使用。
http://i.imagehost.org/0235/apache_type.jpg
选择 apache 安装的位置。
http://j.imagehost.org/0025/apache_location.jpg
点击 Install,正式开始安装。
http://i.imagehost.org/0744/apache_begin.jpg
安装过程只需要几分钟。
http://j.imagehost.org/0419/apache_progress.jpg
点击 Finish 结束安装。
http://a.imagehost.org/0549/apache_finish.jpg
对 apache 进行简单的操作和配置
这时候屏幕右下角的系统托盘区,将出现 apache 服务器的图标。
http://a.imagehost.org/0962/apache_icon.jpg
左键点击 apache 图标,将会出现3个选择:Start、Stop、Restart 分别是开启、停止、重启 apache 服务器。
http://j.imagehost.org/0754/apache_left.jpg
右键点击 apache 图标,也有3个选择:Open Apache Monitor(打开 Apache 监控中心)、Open Service(打开系统服务)、Exit(退出)。
http://i.imagehost.org/0653/apache_right.jpg
打开 Apache 监控中心,将会显示服务器的状态,以及对服务器可以进行的操作。
http://i.imagehost.org/0144/apache_monitor.jpg
在 Windows 的开始菜单,会出现一个 Apache HTTP Server 2.2 的应用程序文件夹,选择 Configure Apache Server -> Edit the Apache httpd.conf Configuration File 就能对 apache 的核心配置文件 httpd.conf 进行修改(httpd.conf 文件位于 apache 安装的目录/conf/httpd.conf)。对 httpd.conf 文件进行修改以后,需要重启 apache 服务器,以使新的配置生效。
http://i.imagehost.org/0705/apache_menu.jpg
更多关于 apache httpd.conf 文件的配置可以参考 apache 手册。
检查
打开浏览器,输入以下 URL:http://localhost。一切正常的话,将会看到 It works! 的欢迎页面。
http://j.imagehost.org/0635/apache_itworks.jpg
关于 php5 和 MySql 的安装请点击这里。
页:
[1]