change www directory
Posted by: camelgrass (---.kelvn1.qld.optusnet.com.au)
Date: February 04, 2007 11:57PM

I use wamp server only for local use. How can I change the location of the www directory only? (where all the site files are served from). Also, can the name of this directory be changed?

Thank you for your help.
Marty

Options: ReplyQuote
Re: change www directory
Posted by: CyberSpatium (71.237.217.---)
Date: February 05, 2007 06:44AM

you can change your DocumentRoot setting in your apache httpd.conf config file to point to whatever location on your computer you want your apache files to be severed from.

c:\wamp\apache2\conf\httpd.conf

find:
DocumentRoot "C:/wamp/www"

change to:
DocumentRoot "C:/your/new/location/here"

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


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

like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:
www.WebDevNewbie.com

Options: ReplyQuote
Re: change www directory
Posted by: lpantos (66.166.191.---)
Date: February 05, 2007 04:30PM

Hi. I have a similar issue and am hoping you can help. I'm actually using IIs;
I have installed wamp on D due to space limitations. IIs provides a inetpub/wwwroot directory ; I have tried pointing WAMP to there as the starup directory and I have also reinstalled wamp and let it use its own www directory. No matter what, I can't run anything.. I run phpadmin and get http:// localhost/phpadmin with a 404 page not found message.

I realize it has to do with my setup , but I"m nnow lost as to how to look for the files in the right place.

Thanks!
Lauri

Options: ReplyQuote
Re: change www directory
Posted by: CyberSpatium (71.237.217.---)
Date: February 05, 2007 10:45PM

if you have iis running then your fies will be served from your inetpub/wwwroot directory. if you are running wamp, then apache will serve files from your d:\wamp\www directory.

your wamp phpmyadmin is only accessible when you have wamp running (apache and mysql), not when you have iis running because phpmyadmin is in your wamp webroot.

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

like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:
www.WebDevNewbie.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.