如何更改EasyPHP的`web root`文件夹的位置? [英] How to change the location of `web root` folder of EasyPHP?
问题描述
当前在我的Windows 7计算机上,它是C:\Program Files (x86)\EasyPHP-5.3.8.1\www
Currently on my Windows 7 machine, it is C:\Program Files (x86)\EasyPHP-5.3.8.1\www
我想将其指向驱动器D上的另一个位置,D:\code
I want to point it into another location on drive D, says D:\code
我该怎么做?
推荐答案
感谢@daviddlh的回答,我为我的问题提供了简单的解决方案.
Thanks to @daviddlh 's answer, I have the simple solution for my question.
打开apache配置文件httpd.conf
Open apache configuration file httpd.conf
通过我们选择的路径替换默认值${path}/www
,说D:\code
Replace the default value ${path}/www
by the path of our choice, says D:\code
它来自哪里?在apache配置文件(即httpd.conf)中查找DocumentRoot
,我们将看到以下将我们链接到${path}/www
Where does it come from? Look for DocumentRoot
in apache config file (i.e. httpd.conf), we will see the below line which link us to ${path}/www
DocumentRoot "${path}/www"
这篇关于如何更改EasyPHP的`web root`文件夹的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!