Asked By
R. Billy
0 points
N/A
Posted on - 08/21/2011
Hi all,
I am using WAMP Manager 1.6 on windows XP to run a PHP localhost server.
When i installed i have set the default directory setting for my WAMP server, now the problem is i want to change that default directory setting and i don't know how to do it.
My default directory is,
C:Program Fileswampwww
I want to change it to,
C:UsersBillyDocuments
Can anybody help me to sort this problem?
Thanks in Advance.
Answered By
edd123
0 points
N/A
#116879
Problem with Changing root directory in localhost using WAMP server
You can configure Apache using the “ httpd.conf ” file
To get to httpd.conf file just click on the wamp icon then go to config files and select httpd.conf.
After you follow these steps:
Look for the document root in the file.
Find a line that looks like DocumentRoot “C:/Program Files/wamp/www/”.
Change that line to: DocumentRoot “C:UsersBillyDocuments/”
Look again as above you’ll find another line like: <Directory “C:/Program Files/wamp/www/”>.
Change it to: <Directory “C:UsersBillyDocuments/”
Now save the file and restart your server to make the changes in action.