Windows XP 安装 WAMP(一):安装 apache 2.2.15

来源:互联网 发布:婚礼软件哪个好 编辑:程序博客网 时间:2024/04/28 09:43

WAMP 指的是 Windows Apache MySql PHP 四者合一。下面介绍 apache 的安装。

下载 apache 安装程序

打开网址:http://apache.freelamp.com/httpd/binaries/win32/,选择其中的 httpd-2.2.15-win32-x86-no_ssl.msi 文件下载。

ImageHost.org

进行 apache 安装

双击 apache 安装程序,开始安装。

ImageHost.org

点击下一步,接受许可协议。

ImageHost.org

点击下一步。

ImageHost.org

填写服务器信息。由于是在本机上作试验用,所以可以随便填写。下面有2个选择 apache 使用的端口,推荐使用端口80。

ImageHost.org

安装模式。有2种选择:Typical 典型安装,没有特殊需要,一般选择 Typical 安装即可;Custom 自定义安装建议高级用户使用。

ImageHost.org

选择 apache 安装的位置。

ImageHost.org

点击 Install,正式开始安装。

ImageHost.org

安装过程只需要几分钟。

ImageHost.org

点击 Finish 结束安装。

ImageHost.org

对 apache 进行简单的操作和配置

这时候屏幕右下角的系统托盘区,将出现 apache 服务器的图标。

ImageHost.org

左键点击 apache 图标,将会出现3个选择:Start、Stop、Restart 分别是开启、停止、重启 apache 服务器。

ImageHost.org

右键点击 apache 图标,也有3个选择:Open Apache Monitor(打开 Apache 监控中心)、Open Service(打开系统服务)、Exit(退出)。

ImageHost.org

打开 Apache 监控中心,将会显示服务器的状态,以及对服务器可以进行的操作。

ImageHost.org

在 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 服务器,以使新的配置生效。

ImageHost.org

更多关于 apache httpd.conf 文件的配置可以参考 apache 手册。

检查

打开浏览器,输入以下 URL:http://localhost。一切正常的话,将会看到 It works! 的欢迎页面。

ImageHost.org

关于 php5 和 MySql 的安装请点击这里。

原创粉丝点击