No of visitors who read this post: 1042
Category: PHP
Type: Question
Author: R. Billy
No votes yet

Hi all,

I am using WAMP Manager 1.6 on windows XP to run 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 Files\wamp\www

i want to change it to,

C:\Users\Billy\Documents

Can any body help me to sort this problem?

Thanks in Advance.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# (Solution Accepted)

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:\Users\Billy\Documents/”

   Look again as above you’ll find another line like: <Directory “C:/Program Files/wamp/www/”>.

Change it to:  <Directory “C:\Users\Billy\Documents/”

    Now save the file and restart your server to make the changes in action.

#

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 settings\User\My documents\websites\>. 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.