logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2 On Windows XP OS
Author
JeffRR



Joined: 09 Dec 2008
Posts: 5

PostPosted: Mon 09 Feb '09 21:43    Post subject: Apache 2.2 On Windows XP OS Reply with quote

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

PostPosted: Mon 09 Feb '09 22:07    Post subject: Reply with quote

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

PostPosted: Tue 17 Feb '09 20:30    Post subject: Reply with quote

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

PostPosted: Tue 17 Feb '09 21:27    Post subject: Reply with quote

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

PostPosted: Thu 30 Jul '09 21:44    Post subject: Reply with quote

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

PostPosted: Fri 31 Jul '09 2:56    Post subject: Reply with quote

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


Reply to topic   Topic: Apache 2.2 On Windows XP OS View previous topic :: View next topic
Post new topic   Forum Index -> Apache