Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: You don't have permission to access / on this server |
|
Author |
|
gariac
Joined: 13 Feb 2010 Posts: 3
|
Posted: Sat 13 Feb '10 9:25 Post subject: You don't have permission to access / on this server |
|
|
I installed the X64 version of Apache 2 from the blackdot.be website. I'm quite sure it is running, since I can use the monitor to start and stop it, etc.
Unfortunately, I get the "You don't have permission to access / on this server." message. Google was not my friend unfortunately, since none of the suggestions I found worked. I moved the htdoc directory to
C:\Documents and Settings\All Users\Documents
but that didn't fix the problem.
To make this perfect clear, I am entering localhost:80 in any of my browsers to get this error message. I am logged into the X64 machine as administrator, and installed Apache64 as administrator. I can enter the address of a linux box on my network from the x64 machine and the linux Apache works fine.
Suggestions? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 14 Feb '10 6:09 Post subject: |
|
|
You happened to put this in quotes?
"C:\Documents and Settings\All Users\Documents"
Which version of Windows are we talking about?
Starting at the top of httpd.conf, what do you have for
ServerName
DocumentRoot
<Directory "/path/path>
Options
AllowOverride
Order and the following line or two after it.
Any other .conf files included into httpd.conf? |
|
Back to top |
|
gariac
Joined: 13 Feb 2010 Posts: 3
|
Posted: Sun 14 Feb '10 6:55 Post subject: |
|
|
Windows version is XP X64.
Originally I had
DocumentRoot "C:/apache64/htdocs"
but one of the "fixes" alleged on the net was to put the directory in the shared file directory. I can move it back.
This is what I think you are looking for in the conf file:
-----------------------------------------------
ServerRoot "C:/apache64"
Listen 80
User daemon
Group daemon
ServerName localhost:80
DocumentRoot "C:/Documents and Settings/All Users/Documents/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "C:/apach64/htdocs">
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Directory "C:/apache64/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
------------------------------------------ |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 14 Feb '10 7:46 Post subject: |
|
|
Yes, that is what I want, I forgot to ask about lines in the error log about it.
You have one and possibly two issues conspiring against you.
1st:
Change: <Directory "C:/apach64/htdocs">
To: <Directory "C:/Documents and Settings/All Users/Documents/htdocs">
If you do not specifically allow Apache access to the folder, you will get a 403 Forbidden.
Two:
You do not show options for this folder, just "None" overrides.
If there is no Options line or it is commented out, although it is supposed to default to "All", it seems to actually default to "None."
If there is no index.html file in the DocRoot folder you will get a 403 Forbidden as well with Options not set to Indexes or All;
Forbidden
You don't have permission to access / on this server.
So actually put that there ... just in case tho I usually never suggest setting Options to "All".
<Directory "C:/Documents and Settings/All Users/Documents/htdocs">
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory>
If this works look at the docs for the Options directive and modify yours to match your actual needs. |
|
Back to top |
|
gariac
Joined: 13 Feb 2010 Posts: 3
|
Posted: Wed 17 Feb '10 12:06 Post subject: |
|
|
The first change fixed the problem. Thanks.
Since originally I followed these instructions:
----------------------------------------------
ServerRoot "C:/apache64"
ServerName localhost:80
DocumentRoot "C:/apache64/htdocs"
<Directory "C:/apache64/htdocs">
DirectoryIndex index.html index.htm index.php
ScriptAlias /cgi-bin/ "C:/apache64/cgi-bin/"
-------------------------------------------------
the original directories were "consistent". So I guess the tip regarding using the "shared" is useful. It might be an odd security "feature" of X64.
Again, thanks for your help. |
|
Back to top |
|
|
|
|
|
|