LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-12-2003, 03:19 PM   #1
sienarot
Member
 
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Rep: Reputation: 15
Newbie with Apache


I've installed Apache on my Debian machine, but I keep getting a "Forbidden" page whenever I try to view the Documentation stored on my server, and if I try to view anything in the public_html directory on any user account. Everything should be set to default, since I've changed very little since the installation. What setting and I supposed to change to fix this restriction?

I don't seem to have this problem if I'm putting anything in the /var/www/ directory though.

Please excuse my ignorance if this has been discussed to death!
 
Old 03-12-2003, 04:11 PM   #2
rusekd
LQ Newbie
 
Registered: Mar 2003
Location: NJ, USA
Distribution: Fedora Core 2
Posts: 9

Rep: Reputation: 0
permissions, permissions, permissions. I had a similar problem awhile back and found that the user's directory as well as the public_html directory have to have the correct permissions. I'm not sure what exactly they are but that might be able to give you a starting point for a google search, also, try the documentation on the apache site, there's a lot of good stuff in there. Hopefully that helps and hopefully someone on here can possibly give you the correct permissions you need.
 
Old 03-12-2003, 04:14 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I am assuming that you have the manual directory aliased or viewable within the DocumentRoot.

If so - try checking the directory permssions.

The folder that contains the file the server is trying to return will need both read and execute permissions.
use "chmod 755 DIRNAME" then see if this solves the problem.

The file that the server is trying to return will usually only need read permissions unless it is a script.
use "chmod 644 DIRNAME" then see if this solves the problem.

apache usualy runs under the user and group of "nobody" - newer version use a user and group of "apache". You can use these to restrict the permissions further if this works.

Hope this helps


David

Last edited by david_ross; 03-12-2003 at 04:59 PM.
 
Old 03-12-2003, 10:47 PM   #4
sienarot
Member
 
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Original Poster
Rep: Reputation: 15
Nope. Doesn't seem to be anything to do directory/file permissions. That was the very first thing I tried when I got the Forbidden message.



Quote:
Originally posted by david_ross
I am assuming that you have the manual directory aliased or viewable within the DocumentRoot.
How do I check this?? Unless this is something that's done by default, it might not be, since I haven't changed any configurations or anything else at all.
 
Old 03-13-2003, 12:44 PM   #5
sienarot
Member
 
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Original Poster
Rep: Reputation: 15
Anyone?
 
Old 03-13-2003, 01:28 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What URL are you trying to access it by?

Can you post the httpd.conf file

Last edited by david_ross; 04-28-2004 at 03:26 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian, Apache, and the newbie dienerk Debian 3 02-17-2004 05:11 PM
newbie apache question... jjd228 Linux - Networking 1 01-08-2004 01:57 PM
Problem with Apache [newbie] Samspeed Linux - General 2 07-25-2003 08:50 AM
A newbie looking for more apache-related help emeraldforce Linux - Software 2 07-11-2002 09:59 AM
apache newbie p_murugappan Linux - Networking 1 06-20-2001 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration