
2.5 新手的福音——PHP环境的集成软件
对于刚开始学习PHP的程序员,往往为了配置环境而不知所措。为此,这里介绍一款对新手非常实用的PHP集成开发环境。
WampServer是指在Windows服务器上使用Apache、MySQL、PHP和phpmyadmin的集成安装环境,目前WampServer 3已经支持PHP7版本。WampServer安装简单、速度较快、运行稳定,受到广大初学者的青睐。
提示:在安装WampServer组合包之前,需要确保系统中没有安装Apache、PHP和MySQL,否则,需要先将这些软件卸载,然后才能安装WampServer组合包。
安装WampServer组合包的具体操作步骤如下:
步骤01 到WampServer的官方网站http://www.wampserver.com/en/下载WampServer的最新安装包WampServer3-x32.exe文件。
步骤02 直接双击安装文件,打开选择安装语言对话框,这里采用默认的设置,单击【OK】按钮,如图2-26所示。

图2-26 选择安装语言对话框
步骤03 在打开的窗口中选择【I accept the agreement】单选按钮,如图2-27所示。

图2-27 接受许可证协议
步骤04 单击【Next】按钮,打开检查安装信息窗口,提示用户需要在系统中安装Microsoft Visual C++ 2015,否则安装会出错,如图2-28所示。

图2-28 检查安装信息
步骤05 单击【Next】按钮,在打开的窗口中设置安装路径,这里采用默认设置,如图2-29所示。

图2-29 设置安装路径
步骤06 单击【next】按钮,在打开的窗口中确认安装的参数后单击【Install】按钮,如图2-30所示。

图2-30 确认安装窗口
步骤07 程序开始自动安装,并显示安装的进度,如图2-31所示。

图2-31 程序开始安装
步骤08 程序安装过程完毕后进入安装完成窗口,单击【Finish】按钮,完成WampServer的安装操作,如图2-32所示。

图2-32 完成安装
步骤09 单击桌面右侧WampServer服务按钮,在弹出的列表中选择【Localhost】选项,如图2-33所示。

图2-33 WampServer服务列表
步骤10 自动打开浏览器,显示PHP配置环境的相关信息,如图2-34所示。

图2-34 PHP配置环境的相关信息