PHP学习入门二之WAMP配置

WBOY
Release: 2016-06-23 13:36:41
Original
1015 people have browsed it

WampServer的安装十分简单,只需next即可。

在安装完成后,我们可以右键选择不同的语言。

一、端口设置

WAMP有三种状态,红色表示离线、黄色表示部分服务启动成功、绿色表示所有服务启动成功

若显示黄色,一般是因为apache80端口被占用,我们可以通过Apache->service查看服务器是否启动,若启动失败,选择去强制关闭占用80端口的程序

流程如下:

cmd??>netstat -ano??>80端口pid??>启动任务管理器关闭该进程



WAMP变为绿色则表示成功。

二、网站根目录设置

我们可以随意设立一个独立文件夹,比如E:/walkthehorizon(后面简称x,注意这里的'/'windows文件夹的分隔符是'\')

首先记事本打开httpd.conf,查找documentroot找到第二个,将后面的路径修改为x;如图:


之后将下一个Directory位置也设置为x


保存即可。

三、修改开发工具包文件

在安装根目录下找到wampmanager.ini

搜索menu.left,修改如图位置


之后找到wampmanager.tpl文件

搜索menu.left,修改如图位置


重启,观察www目录是否改变,若正常改变,则设置成功。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!