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 on Windows - Error: DocumentRoot must be a directory
Author
Magpie



Joined: 17 Dec 2009
Posts: 2

PostPosted: Fri 18 Dec '09 9:42    Post subject: Apache on Windows - Error: DocumentRoot must be a directory Reply with quote

Hi,

I'm trying to run Apache on Windows 2003 with an own user account "Apache", which has limited rights,
but I get the error message:
DocumentRoot must be a directory.

Well, in my httpd.conf is written:
DocumentRoot "D:/htdocs/"
<Directory "D:/htdocs/">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
This directory does exist!

I allready tried:
D:\htdocs
D:\htdocs\
"D:\htdocs"
"D:\htdocs\"
D:/htdocs
D:/htdocs/
"D:/htdocs"
"D:/htdocs/"

None of these solved my problem.

Can anyone help me please?

Magpie
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 18 Dec '09 10:31    Post subject: Reply with quote

did you adjust the permissions on that folder with the windows permissions? Is the user "Apache" allowed to read that files?
Back to top
Magpie



Joined: 17 Dec 2009
Posts: 2

PostPosted: Fri 18 Dec '09 12:08    Post subject: Reply with quote

Since there is no error when I move the directory htdocs and change the DocumentRoot to C:/WWW/Apache2.2/htdocs I checked the right of "Apache" again.

And I noticed that the user "Apache" didn't have the right to read D:\.
Now it works fine.

Thanks a lot!

Unripapaya
Back to top
Vlad92



Joined: 30 Jan 2011
Posts: 1

PostPosted: Sun 30 Jan '11 13:10    Post subject: Reply with quote

Magpie wrote:
Since there is no error when I move the directory htdocs and change the DocumentRoot to C:/WWW/Apache2.2/htdocs I checked the right of "Apache" again.

And I noticed that the user "Apache" didn't have the right to read D:\.
Now it works fine.

Thanks a lot!

Unripapaya

How to give user "Apache" the right to read C:\ ???
Where and how can I do it?I'm using Windows 7 x64.I'm a beginner.Please help! Rolling Eyes
Back to top


Reply to topic   Topic: Apache on Windows - Error: DocumentRoot must be a directory View previous topic :: View next topic
Post new topic   Forum Index -> Apache