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

Nam G VU picture Nam G VU · Dec 15, 2011 · Viewed 29.4k times · Source

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?

Answer

daviddlh picture daviddlh · Feb 26, 2012

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>