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?
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?
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:
Right click the EasyPHP icon, and select Configuration, then Apache. In httpd.conf, do a find for DocumentRoot. My folder is C:\php. Change these two lines:
DocumentRoot "C:\php"
<Directory "C:\php"> (the first one just below DocumentRoot...)
Once you have changed C:\php to wherever your directory is, right click the EasyPHP icon again and restart.
My apologies, same answer as above. Did not see it until writing this. :-(
Actually, if your apache is using Virtual Hosts, you just have to change the path under the correct "Virtual Host". In my case, it was:
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, saysD:\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