You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christian Toledo <ch...@webcollage.com> on 2006/09/27 20:35:06 UTC

[users@httpd] Running Apache with DocumentRoot on a Mapped Drive

Is it possible to run Apache Win32 with a DocumentRoot pointing to a
network drive? The servers are on a Workgroup (one with data content and
the other running Apache) and I have setup identical users on both
systems with local admin rights. I have set the Apache service to use
this local user but the service fails to start. The drive is mapped and
I am able to run Apache from the console but it doesn't seem to want to
load using a mapped drive and my guess is that it's due to permissions
issue. I have read this works with servers in the same domain and was
wondering if this was possible with servers in a workgroup
(stand-alone). Thanx.

Christian Toledo
Web Administrator

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Running Apache with DocumentRoot on a Mapped Drive

Posted by thetazzbot <th...@gmail.com>.
Yes, you can achieve what you're trying to do, however, there are some
gotchas that I could not work around.

First of all, the reply above this one, may not always work, and it did
not work for me.

If you are running apache as a service, change the account the service
logs into.  This may not work (didnt for me).

So what I did (I use XAMPP's prepacked apache) was to turn off the
apache service and run apache from the batch file.

I set my virtual root for one of my sites to a UNC name like so:

//10.0.0.1/website/html

I then started the apache batch file and it worked.

There aren't many posts out there on doing this and even fewer correct
answers.  Just wanted to post my results that finally worked so others
might benefit.

Cheers,
Mark


-- 
thetazzbot
------------------------------------------------------------------------
thetazzbot's Profile: http://unixadmintalk.com/863
View this thread: http://unixadmintalk.com/showthread.php?t=182275



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Running Apache with DocumentRoot on a Mapped Drive

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Williams, Dewey wrote:
> I have tried to do this for years and it always fails.  I keep hoping a
> version of Apache httpd for Win32 will finally recognize mapped drives
> but so far, no matter how I setup permissions and accounts, it doesn't
> work.
> 
> If anyone has this working and can walk "us" through the steps I know I
> would greatly appreciate it.

Remember you aren't living in the GUI.  You don't have explorer.exe in
place as a service, so your environmental consideration are missing.

NOW - it's rather trivial if you

 1. set your run-as account to an authorized file user of those network
    resources (workgroup, or nt domain member).  NEVER use LocalSystem
    aka SYSTEM account for this purpose, or change it's permissions.

 2. use absolute file syntax instead of drive letters.  E.g., for S:
    mounted from \\bigbertha\cdrive\ copy of htdocs, you would use

    Alias /docs/ //bigbertha/cdrive/htdocs/

    and the same, for the <Directory > sections, DocumentRoot, etc.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Running Apache with DocumentRoot on a Mapped Drive

Posted by Todd L Hicks <el...@hotmail.com>.
Dewey,
I know that this doesn't exactly answer the mail, but...
my solution to this problem was rather than using a network share, I used an
iscsi solution.
Using the microsoft iSCSI initiator on the host and an iscsi enterprise
target on FC4. If your remote storage needs to be a windows host, then there
are mostly only commercial solutions, but I have found one free one that is
somewhat limited that may meed the need. I've used for development purposes
on occasion (http://www.iscsicake.com/).

Todd 

-----Original Message-----
From: Williams, Dewey [mailto:williams@email.uncc.edu] 
Sent: Wednesday, 27 September, 2006 4:36 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Running Apache with DocumentRoot on a Mapped
Drive

I have tried to do this for years and it always fails.  I keep hoping a
version of Apache httpd for Win32 will finally recognize mapped drives
but so far, no matter how I setup permissions and accounts, it doesn't
work.

If anyone has this working and can walk "us" through the steps I know I
would greatly appreciate it.

Dewey Williams

-----Original Message-----
From: Christian Toledo [mailto:chris.toledo@webcollage.com] 
Sent: Wednesday, September 27, 2006 2:35 PM
To: users@httpd.apache.org
Subject: [users@httpd] Running Apache with DocumentRoot on a Mapped
Drive

Is it possible to run Apache Win32 with a DocumentRoot pointing to a
network drive? The servers are on a Workgroup (one with data content and
the other running Apache) and I have setup identical users on both
systems with local admin rights. I have set the Apache service to use
this local user but the service fails to start. The drive is mapped and
I am able to run Apache from the console but it doesn't seem to want to
load using a mapped drive and my guess is that it's due to permissions
issue. I have read this works with servers in the same domain and was
wondering if this was possible with servers in a workgroup
(stand-alone). Thanx.

Christian Toledo
Web Administrator

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Running Apache with DocumentRoot on a Mapped Drive

Posted by "Williams, Dewey" <wi...@email.uncc.edu>.
I have tried to do this for years and it always fails.  I keep hoping a
version of Apache httpd for Win32 will finally recognize mapped drives
but so far, no matter how I setup permissions and accounts, it doesn't
work.

If anyone has this working and can walk "us" through the steps I know I
would greatly appreciate it.

Dewey Williams

-----Original Message-----
From: Christian Toledo [mailto:chris.toledo@webcollage.com] 
Sent: Wednesday, September 27, 2006 2:35 PM
To: users@httpd.apache.org
Subject: [users@httpd] Running Apache with DocumentRoot on a Mapped
Drive

Is it possible to run Apache Win32 with a DocumentRoot pointing to a
network drive? The servers are on a Workgroup (one with data content and
the other running Apache) and I have setup identical users on both
systems with local admin rights. I have set the Apache service to use
this local user but the service fails to start. The drive is mapped and
I am able to run Apache from the console but it doesn't seem to want to
load using a mapped drive and my guess is that it's due to permissions
issue. I have read this works with servers in the same domain and was
wondering if this was possible with servers in a workgroup
(stand-alone). Thanx.

Christian Toledo
Web Administrator

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org