Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Change Location of Document Root on Windows |
|
Author |
|
mike
Joined: 16 Sep 2011 Posts: 3
|
Posted: Sun 18 Sep '11 20:24 Post subject: Change Location of Document Root on Windows |
|
|
Hi,
I am running Apache/2.2.11 (Win32) on Windows XP. I am also running PHP/5.2.9.
I am hoping that somebody can advise me on the following:
- I want to change the location of my htdocs folder. I have copied my htdocs folder from:
"C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
to this:
C:/htdocs
- I have updated the DocumentRoot and Directory path statements in the httpd.conf file as follows:
DocumentRoot "C:/htdocs"
<Directory "C:/htdocs">
- I have restarted Apache.
- I am able to access the index.html file that says "It Works" after entering 127.0.0.1 into my browser's address bar. However I am unable to view any other html files and neither am I able to view my php sites on localhost unless I change the aforementioned path statements back to the original htdocs path.
My Questions are:
Are there any other settings within the httpd.conf file that must be changed to reflect the new location of htdocs besides the DocumentRoot and <Directory> paths
Do I have to make any changes anywhere else for PHP scripts (located at the new location) to work, such as Windows "Environment Variable" Path statements, etc...
I would be most appreciative for some advice?
Many Thanks.
Regards.
Mike |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 18 Sep '11 21:26 Post subject: |
|
|
In the .zip I read:
... change in httpd.conf the Documenroot, Directories, ScriptAlias, also when you use the extra folder config file(s)change to your location there... Just search in all your conf files, where to change.
Steffen |
|
Back to top |
|
|
|
|
|
|