Author Topic: Apache Server Issue  (Read 3643 times)

0 Members and 1 Guest are viewing this topic.

Offline Feanor

  • Newbie
  • *
  • Posts: 55
    • View Profile
Apache Server Issue
« on: July 25, 2006, 05:10:03 pm »
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.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Apache Server Issue
« Reply #1 on: July 25, 2006, 06:05:04 pm »
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.

Offline Feanor

  • Newbie
  • *
  • Posts: 55
    • View Profile
Re: Apache Server Issue
« Reply #2 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.
Share the knowledge.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Apache Server Issue
« Reply #3 on: July 25, 2006, 06:43:35 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

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Apache Server Issue
« Reply #4 on: July 25, 2006, 07:55:48 pm »
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.