News:

Happy New Year! Yes, the current one, not a previous one; this is a new post, we swear!

Main Menu

Apache Server Issue

Started by Feanor, July 25, 2006, 05:10:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Feanor

So, I just installed Apache 2.2.2 (the newest version) on my Linux Slackware computer. I configured it, set permissions and all of that. When I try to access my site, however, I get
Quote
Forbidden
You don't have permission to access / on this server.

I have no idea why, this happens even when I try connecting to 127.0.0.1 on my local machine.
I set my permissions on htdocs and index.html to: drwxrwxrwx
In httpd.conf, my ServerRoot is set to: "/usr/local/apache"
and DocumentRoot is: "/usr/local/apache/htdocs"

What is additionally frustrating, is that there is nothing in my logs folder. Not even a folder called "error_logs".

I have been unable to find a solution online.
Share the knowledge.

Sidoh

Did you edit httpd.conf?  If so, restart apache.

Try changing DocumentRoot to something else.  I put mine in /usr/www.

Oh, when you kill Apache, make sure you:


$ sudo killall httpd
$ /usr/local/apache/bin/httpd start

httpd never got replaced in /sbin on my server for some reason.

Feanor

Tried changing DocumentRoot. No help. Restarted apache several times. I installed as root, could that be a problem? Still no log files.
Share the knowledge.

Sidoh

Quote from: Feanor on July 25, 2006, 06:20:06 PM
Tried changing DocumentRoot. No help. Restarted apache several times. I installed as root, could that be a problem? Still no log files.

Can you contact me on AIM?  It'll be faster.  GenoSidoh06

BTW, this topic should be located in UNIX/Linux discussion

iago

Make sure you have a <Document ...> block that matches your DocumentRoot:

<Directory "/usr/apache2/htdocs">
.....
Order allow,deny
Allow from all
...
</Directory>

If that doesn't work, try running Apache through strace ("strace /usr/local/bin/httpd"), it gives tons of info but you might be able to figure out what's exploding. 

Let us know here if your problem gets solved.