Little info on documentroot please...
Posted by: sjku (---.net)
Date: May 21, 2007 04:02PM

Hi,
My wamp is installed in c:/wamp
I added a virtual host in apache with "documentroot" to E:/server
It gives a 403 error.
If I change the documentroot to c:/wamp/www , it opens the page.

Can't I use a directory outside www as my root directory?
Thanks

Options: ReplyQuote
Re: Little info on documentroot please...
Posted by: dval (---.chrcitadelle.be)
Date: May 21, 2007 04:49PM

extract from (Unofficial) WAMP Setup and Usage Guide
: [forum.wampserver.com]

If you wish to save all your website files in a different location, you can edit the Document Root setting in your httpd.conf file and change it to where you which to save your website files too. To change your DocumentRoot, open up your httpd.conf file and find:

DocumentRoot "C:/wamp/www"

Change it to:
DocumentRoot "C:/some/other/folder”

Save the file and restart Apache for the net setting to take effect. Now move your website files to your new DocumentRoot location and you will now be using this new location for your website files.

To access your script, start Apache, start your favorite web browser and surf to [localhost]. If the name of your script is test.php, then to access it you would type [localhost].

Options: ReplyQuote
Re: Little info on documentroot please...
Posted by: CyberSpatium (71.237.217.---)
Date: May 21, 2007 05:21PM

sjku, if you want to change your document root to E:/server, there are actually two sections in the apache config file you need to edit to make it work.

open httpd.conf file
start wamp -> left click on the wamp tray icon -> config files -> httpd.conf

find:
DocumentRoot "C:/wamp/www"

change to:
DocumentRoot "E:/server"

then find:
<Directory "C:/wamp/www">

change to:
<Directory "E:/server">

save the file and restart apache for the new settings to take effect.


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: Little info on documentroot please...
Posted by: sjku (---.net)
Date: May 21, 2007 06:49PM

Perfect! The <directory > settings did it.
Thank you once again. You have been a huge help in the past, and still you are the Best!
Thanks

Options: ReplyQuote
Re: Little info on documentroot please...
Posted by: dval (---.168-243-81.adsl-dyn.isp.belgacom.be)
Date: May 21, 2007 10:17PM

I think it too
many thanks CyberSpatium

Options: ReplyQuote


Sorry, only registered users may post in this forum.