Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the location of `web root` folder of EasyPHP?

Currently on my Windows 7 machine, it is C:\Program Files (x86)\EasyPHP-5.3.8.1\www

I want to point it into another location on drive D, says D:\code

How would I do that?

like image 985
Nam G VU Avatar asked Dec 15 '11 05:12

Nam G VU


2 Answers

You need to right click on the icon on the Easyphp icon on the taskbar and select configuration->Apache. This will open httpd.conf in a notepad window.

You need to modify it as follows:

DocumentRoot "D:/code"
(...)
# DocumentRootDirectory 
<Directory "D:\code">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
 </Directory>
 (...)
 NameVirtualHost 127.0.0.1
 <VirtualHost 127.0.0.1>
   DocumentRoot "D:/code/"
   ServerName localhost
 </VirtualHost>
like image 160
daviddlh Avatar answered Oct 23 '22 16:10

daviddlh


Thanks to @daviddlh 's answer, I have the simple solution for my question.

Open apache configuration file httpd.conf

Replace the default value ${path}/www by the path of our choice, says D:\code

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"
like image 24
Nam G VU Avatar answered Oct 23 '22 17:10

Nam G VU