how to change directory localhost?
Posted by: carsten888 (---.ip.telfort.nl)
Date: March 20, 2008 09:12AM

I got WAMP installed and working. I would like my siteroot(s) to be in 'my documents/websites/" instead of 'c:wamp/www'.

I editted httpd.cof near
'This should be changed to whatever you set DocumentRoot to.'
'<Directory "C:\Documents and Settings\Me\my documents\websites">'

restarted server now i get error 403:
'Forbidden

You don't have permission to access / on this server.'
what am I overlooking?

Options: ReplyQuote
Re: how to change directory localhost?
Posted by: yfastud (Moderator)
Date: March 20, 2008 01:59PM

First, try to avoid blank space in paths
Second, make sure to have write access to that folder
Third, you have to change in 2 places in that config file

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: how to change directory localhost?
Posted by: carsten888 (---.ip.telfort.nl)
Date: March 20, 2008 04:34PM

"First, try to avoid blank space in paths
Second, make sure to have write access to that folder
Third, you have to change in 2 places in that config file"

did all the above, but did not work.

I managed to move the root to:
<Directory "C:/Program Files/iTunes/">
(this was just for a test)
note that there is a space between 'program' and 'files', so that can't be the problem.

I have write access to the folder I want to use (XP localhost, so all is open).

I changed it 2 places and managed to move the siteroot. So I got all 3 ticked.

But what could be the problem moving my siteroot to:
'<Directory "C:/Documents and Settings/Me/my documents/websites/">'

when I try I get this error:
Unable to connect
Firefox can't establish a connection to the server at localhost.

Options: ReplyQuote
Re: how to change directory localhost?
Posted by: yfastud (Moderator)
Date: March 20, 2008 05:07PM

Theory, there is no problem to use blank space in apache, but the problem is actually in text editor since different text editors might use different special code to handle blank space which causes apache fail to read it, that's why I suggest to avoid blank space if possible

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: how to change directory localhost?
Posted by: carsten888 (---.ip.telfort.nl)
Date: March 20, 2008 07:02PM

I used notepad.

renaming 'my documents' is not realy an option as it won't be recognized by Windows anymore.

"the problem is actually in text editor since different text editors might use different special code to handle blank space which causes apache fail to read it"
I even tried to copy-paste the spaces from the path that works to the path that did not work:-)#

still "Unable to connect" .

Options: ReplyQuote
Re: how to change directory localhost?
Posted by: carsten888 (---.ip.telfort.nl)
Date: March 20, 2008 07:09PM

GOT IT!

missed a space before the first quote <Directory "C:/Documents.

Thanks for all the help!

Options: ReplyQuote


Sorry, only registered users may post in this forum.