Apache 2.2.17 and Windows Server 2008

I am trying to setup Apache 2.2.17 to run on Windows Server 2008 r2 and have the document root on a shared network drive. I have taken the following steps, but can't seem to get the Apache service to start when the document root is set to the shared network folder.

1. Install Apache 2.2.17
2. Modify the service to run as user who has rights to shared folder.
3. Map drive to shared folder.
4. Verify user rights on shared folder (have full rights)
5. Set the docmentroot and <directory> statements in the httpd.conf file to point to the UNC path of the network share folder.
6. Start Apache service. Fails with "documentroot must be a directory" error.

If I change the documentroot to a local folder on the machine, it works fine.

It seems it must be a rights issue to the shared drive (which is housed on a Windows Storage Server with service pack 2 installed). But I've given the user that is running the Apache service on the web server full rights to the shared folder.

I've tried this on an x86 installation of Windows Server 2008 and a 64 bit installation with the same results. I'm getting ready to try with an older version of Windows Server.

Anyone have ideas on what I'm doing wrong?

gnickerson
gnickersonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
>>> 5. Set the docmentroot and <directory> statements in the httpd.conf file to point to the UNC path of the network share folder.

Why are you using UNC when you have a drive mapped to the share?  I've found nothing in the manual that gives any guidance on using UNC, but if it is not working, try the "standard" method.
0
gnickersonAuthor Commented:
I tried the standard mode first. When it didn't work I started searching for a solution and the data I found said to use the UNC path instead of the mapped drive letter. But, it won't accept my UNC path either. It seems to me that it is a "rights" issue. But, the user has full rights to the network share and I've set the same user to run the Apache service.

Other ideas?
0
Steve BinkCommented:
It just so happens that I have hit on issue similar to this in the course of my work.  I have posted one question about it here:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_26951831.html

One thing we did find so far is that Windows 2008 disables NTLM passthrough authentication by default.  This means (I think...I'm not totally clear on this) that if I am on SERVER1 and am trying to connect to SERVER2, and a local user exists on both servers with the same password, the credentials are passed as SERVER1\useraccount, not just useraccount.  In the security event log, you can see the login attempt succeeding, but access to the file system is denied, regardless of the permissions involved.

The question I posted is in the context of rights assigned to groups not being considered for shares, but we have seen a few other aspects of this issue as well.  For example, I as finally able to have the login work and a file created, but the same user could not come back after the fact and change, even though full control had been granted.

If I make any progress with this, I'll come back and update you.

0
gnickersonAuthor Commented:
OK, I finally found the solution...

I had to make my Windows server a member of my Active Directory domain and then map the network drive and run the Apache service with the same domain user that had rights to my network share folder that holds my web data.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gnickersonAuthor Commented:
Nobody offered a solution, but I finally found the solution by continuing to work on the problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.