I've added the list back in, since I don't do *private* troubleshooting.

Yes, you execute the commands in the shell. Here's a slightly more
step-by-step approach:

1. Find your Apache config files. (I don't know where Red Hat normally puts
them; on my systems, I don't use the defaults, so I don't even recall what
Debian does about this.) They are files with the names access.conf,
srm.conf, and one other I forget.

2. See what your DocumentRoot is. If you are in the directory with the
config files, the command "grep DocumentRoot *" should get you that information.

3. See what permissions are associated with the DocumentRoot directory. If
the directory is /home/fred, for **example**, do this with the command "ls
-l /etc/fred". You want the stuff on the left-hand side to read, probably,
rwxr-xr-x. (There might be w's where I show -'s; that's OK. But you need the
r's and x's I show.)

4. If it doesn't match what I showed above, then (as root) run the command
        "chmod 755 /etc/fred"

5. You *may* also need to make the files within the DocumentRoot directory
readable by apache. If you do, the command "chmod 644 /etc/fred/*" is one
way to do it.

6. Now try connecting. If it still doesn't work, check the apache logs
(again, I don't know where Red Hat puts them - on my Debian systems, they
are in /var/log/apache) andf see what problem the apache server is logging.

Even if all of this works, you may not have good (that is, secure)
permissions set. There is no shortcut to understanding here; you need to
read up on permissions and how they work, so you don't make mistakes that
leave you vulnerable. Any beginner's guide to Unix or Linux will cover the
basics here.

At 08:16 AM 3/17/01 -0800, Keletso Mokgethi wrote:
>I am using the Redhat Linux distribution 6.2 and it
>has version 1.3 of Apache. I am really a novice and I
>am not sure of anything i am doing. The only option I
>set on the server was the Servername option, I've
>never really tampered with the conf files. The first
>time I tested the server out, it worked, so now it
>won't allow me permission. The other commands you
>suggested that I execute, I don't understand - where
>do I execute them - the shell?
>
>
>
>--- Ray Olszewski <[EMAIL PROTECTED]> wrote:
>> The problem is not with your browser; it is with th
>> Apache server. It
>> normally runs as an unprivileged user (sometimes
>> "www"; sometimes "nobody").
>> Whatever directory you have set in Apache as its
>> DocumentRoot (the directory
>> it uses when you connect to it without anything
>> after the hostname) has too
>> restrictive permissions on it. 
>> 
>> So ... find the directory ... without any
>> information from you about the
>> Linux distribution and version you are using, any
>> suggestions from me would
>> be wild guesses ... and chmod it to 555, its
>> contents to 444, and you should
>> be set.
>> 
>> At 12:07 PM 3/16/01 -0800, you wrote:
>> >hi all,
>> >
>> >i am a newbie to linux and i have been trying to
>> run
>> >the apache webserver on a laptop and i am running
>> into
>> >problems from the start. right now i am not able to
>> >access the server even from my host computer. i
>> have
>> >or logged on as root and i have tried opening a
>> >browser to test the server. i typed
>> http://localhost
>> >and i get an error message that reads:
>> >
>> >Forbidden:
>> >
>> >"you do not have permission to access / on this
>> >server"
>> >
>> >the port number is set to the default value of 80.
>> >
>> >how do i resolve this problem, please assist.
>> 
>> 
>> 
>> --
>> ------------------------------------"Never tell me
>> the odds!"---
>> Ray Olszewski                                       
>> -- Han Solo
>> Palo Alto, CA                                 [EMAIL PROTECTED] 
>>       
>>
>----------------------------------------------------------------
>> 
>> -
>> To unsubscribe from this list: send the line
>> "unsubscribe linux-newbie" in
>> the body of a message to [EMAIL PROTECTED]
>> Please read the FAQ at
>http://www.linux-learn.org/faqs
>
>
>__________________________________________________
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail. 
>http://personal.mail.yahoo.com/
>
>

--
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to