如何更改EasyPHP的`web root`文件夹的位置? [英] How to change the location of `web root` folder of EasyPHP?

查看:73
本文介绍了如何更改EasyPHP的`web root`文件夹的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前在我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆