LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-07-2004, 07:11 PM   #1
johann519
LQ Newbie
 
Registered: Jan 2004
Location: Portland, OR
Distribution: Fedora 1
Posts: 20

Rep: Reputation: 0
apache forbidden root message


I just set up a webserver on a fedora 1 machine with all the updates. When I tried to access it on my other computer to see if it worked, it gave me a forbidden message and said that I didn't have permission to acces the root. Why is apache looking in root for the site. Any help would be great. Thanks.

P.S. I looked at the root directory and it's not set to root
 
Old 05-07-2004, 07:15 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Does apache have permission to read the webroot directory? Also you might try putting an index.html into your webroot since some configurations do not allow Apache to auto-index certain directories.
 
Old 05-07-2004, 07:16 PM   #3
johann519
LQ Newbie
 
Registered: Jan 2004
Location: Portland, OR
Distribution: Fedora 1
Posts: 20

Original Poster
Rep: Reputation: 0
sorry i'm a noob, can you explain?
 
Old 05-07-2004, 07:48 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Somewhere in your httpd.conf there will be a line that looks like:

DocumentRoot "<some directory>"

This is the root from which files are served up by the web server. Usually on default installations of RH it's /var/www/html. You need to make sure that the apache user (the user account which the server runs under) can read this directory and the files in it.

Also, there is a configuration directive (don't know the exact details) that prevents Apache from auto-indexing the conents of directories (thus providing a default index.html listing the files in the directory). To test it out, try creating an index.html in the document root and make sure Apache can read it. If you need help figuring out whether Apache can read something, look on the Web or around here for a basic guide to Unix permissions -- there are many.
 
Old 05-07-2004, 08:02 PM   #5
johann519
LQ Newbie
 
Registered: Jan 2004
Location: Portland, OR
Distribution: Fedora 1
Posts: 20

Original Poster
Rep: Reputation: 0
thanks that worked
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Forbidden message helpme0904 Linux - Newbie 1 11-16-2005 12:57 PM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 11:31 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
Apache: Forbidden Error Ninja Cow Linux - Software 2 12-07-2003 12:24 PM
Apache 2.0.4 .. FORBIDDEN error CRego3D Linux - Software 6 05-15-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration