Problem with Changing root directory in localhost using WAMP server

Asked By 0 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by edd123
Best Answer
Best Answer
Answered By 0 points N/A #116879

Problem with Changing root directory in localhost using WAMP server

qa-featured

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.

Answered By 0 points N/A #116880

Problem with Changing root directory in localhost using WAMP server

qa-featured

Hello R. Billy,

In order to change the default directory of your WAMP server, you must have to edit the httpd.cof configuration file. In this file the location mentioned like <Directory C:Documents and settingsUserMy documentswebsites>. But you must note the following things,

  • Avoid blank space in the new path.
  • You should have WRITE access to the folder.
  • Total 2 places have to be changed in the cof file.

 

Login/Register to Answer

Related Questions