LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-14-2007, 09:19 AM   #1
daemonkl
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Rep: Reputation: 15
Question Apache: 403 Forbidden Error


Hi!

I'm having apache web server run on my pc, and have created one account for website
unfortunately, the site is not accessible and hit 403 Forbidden Error
Quote:
Forbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at forexbah.com Port 80
this is my httpd.conf file
Quote:
<VirtualHost 209.250.236.2:80>
ServerAlias www.forexbah.com
ServerAdmin webmaster@forexbah.com
DocumentRoot /home/forexbah/public_html
ServerName forexbah.com

User forexbah
Group forexbah
BytesLog /usr/local/apache/domlogs/forexbah.com-bytes_log
CustomLog /usr/local/apache/domlogs/forexbah.com combined
ScriptAlias /cgi-bin/ /home/forexbah/public_html/cgi-bin/
</VirtualHost>

<Directory "/home/forexbah/public_html">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I have set chmod a+r /home/forexbah/public_html but the page still cannot be displayed
anything wrong with the httpd.conf ?
 
Old 10-14-2007, 09:30 AM   #2
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
The error explains the problem; it is a permission issue. Do a ls -la on the /home/forexbah/public_html directory and be sure it is readable by the web server.
 
Old 10-14-2007, 11:15 AM   #3
daemonkl
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ray_80 View Post
The error explains the problem; it is a permission issue. Do a ls -la on the /home/forexbah/public_html directory and be sure it is readable by the web server.
as i mention, i have done chmod a+x to the directory /home/forexbah/public_html ..and it should be readable by all (user, group, others)
 
Old 10-14-2007, 11:50 AM   #4
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
What does the Apache error_log say ? It is a permission issue.

Check the permissions from /home and traverse down the order till you reach public_html which is your Web root directory.
 
Old 10-14-2007, 12:15 PM   #5
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by daemonkl View Post
as i mention, i have done chmod a+x to the directory /home/forexbah/public_html ..and it should be readable by all (user, group, others)

The error is stating that the web server has no rights to enter the directory.

Post the results of the ls -la
 
  


Reply

Tags
apache, httpdconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache/1.3.34 Server - Forbidden 403 error njoyzrd Linux - Server 2 06-19-2007 07:51 PM
Apache 403 Forbidden Error On Every File agtlewis Linux - Software 5 09-01-2006 11:25 PM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM


All times are GMT -5. The time now is 07:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration