Author |
|
JeffRR
Joined: 09 Dec 2008 Posts: 5
|
Posted: Mon 09 Feb '09 21:43 Post subject: Apache 2.2 On Windows XP OS |
|
|
I’m using Apache 2.2 on my Windows XP computer. Can someone tell me how to change the location where my web page is stored? It is currently on my C: drive and I would like to move it to my external hard drive.
Thank you |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 09 Feb '09 22:07 Post subject: |
|
|
httpd.conf file
change the
DocumentRoot c:/path-to/Apache2/htdocs -> to wherever
a little further down change the Directory container as well.
<Directory "c:/path-to/apache2/htdocs> -> to wherever |
|
Back to top |
|
JeffRR
Joined: 09 Dec 2008 Posts: 5
|
Posted: Tue 17 Feb '09 20:30 Post subject: |
|
|
I changed my DocumentRoot and Directory value to n:\web and then I change it to n:/web, but neither worked.
Could I have to change something else too since I'm trying to store the web page on a network drive?
Thank you |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 17 Feb '09 21:27 Post subject: |
|
|
If you are running windows as a service you can't have your document root on a networkdrive. But you can run the service with a own created user who can reach the networkdrive. |
|
Back to top |
|
JeffRR
Joined: 09 Dec 2008 Posts: 5
|
Posted: Thu 30 Jul '09 21:44 Post subject: |
|
|
I'm not sure what you mean "running windows as a service".
Can somone tell me how to set my document root on a network drive?
Thank you |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 31 Jul '09 2:56 Post subject: |
|
|
Simple way is use ApacheMonitor (in the /bin folder as well)
Once you run it ... does it show anything in it's Window?
If so, you are running Apache as a service and it is running under the user SYSTEM.
per: http://httpd.apache.org/docs/2.2/platform/windows.html
Quote: | Never grant any network privileges to the LocalSystem account! If you need Apache to be able to access network resources, create a separate account for Apache as noted below. |
If you want to let apache cruise through the network shares you will need to run it as a different user.
The first part of this will show you how
http://www.justmyspace.org/apwinperm.html
Once you do that you can then use a document root that is on some network drive/share providing the user Apache is running under has rights to said drive/share. |
|
Back to top |
|