Search code examples
locationrooteasyphp

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?


Solution

  • 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"