Danny,
I'm not the original poster, but I had similar trouble so I want to
respond also. I installed the default Apache that came with 6.1. I used
linuxconf to set it up. The daemon wouldn't run so I switched it over to
inetd, at which point I started receiving the same error messages as
Robert. I then switched httpd.conf to the same one I ran successfully with
5.2 - no difference, the server kept giving the same error message about
me not having permission. Finally I uninstalled the Apache rpm, and
installed the one that came with 5.2. Now all is well.
Glen
Glen Lee Edwards
[EMAIL PROTECTED]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: "[EMAIL PROTECTED]" for general perl questions
:: [EMAIL PROTECTED]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
On Wed, 16 Feb 2000, Danny wrote:
>-If you are running a live box you should always backup httpd.conf,
>srm.conf everytime you make changes to it. eg:-
>
>cp /somewhere/httpd/conf/httpd.conf /home/backup/
>
>So if you make a mess of it you can always bring apache back up by using
>
>http -f /home/backup/httpd.conf.
>
>- In regards to your apache problem.
>
>If you installed Apache using the RPMS you should have no problem.
>
>What lines in httpd.conf did you modify recently?
>Can you attach of copy of the lines in httpd.conf you modified recently?
>
>- you should never recompile apache using the source. linux rh's
>/etc/rc.d/init.d is such a "pain" to deal with. You must install apache
>install apache using the RPMS because it actually deals with the pain of
>messing with /etc/rc.d
>
>Looking forward to your feedback
>
>danny
>
>[EMAIL PROTECTED]
>
>
>At 18:04 14/02/00 -0600, you wrote:
>>I was so close!
>>
>>$ telnet localhost 80
>>Trying 127.0.0.1...
>>Connected to localhost.
>>Escape character is '^]'.
>>GET /
>>(httpd returns the html code for the page)
>></BODY></HTML>
>>Connection closed by foreign host.
>>
>>----- Original Message -----
>>From: Carl Karsten <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Monday, February 14, 2000 4:27 PM
>>Subject: Re: Can not get access to local www
>>
>>
>>> bunch of things:
>>>
>>> 1. it doesn't matter who you are logged in as. the web server daemon
>>> (httpd) takes requests from anyone, and accesses your file system as user
>>> nobody. (I think, can someone clarify this?) The 'packets' that it
>>receives
>>> do not include who you are.
>>>
>>> 2. in order for httpd to read the directory, you need execute rights on
>>the
>>> dir:
>>> # chmod a+x html/
>>> # ls -ld html/
>>> drwxr-xr-x 3 root root 1024 Feb 3 10:35 html/
>>>
>>> You need this on all the dirs from your VFS root (/) to your "document
>>root"
>>> (defaults to /home/httpd/html) so:
>>> # chmod a+x /home
>>> # chmod a+x /home/httpd
>>> # chmod a+x /home/httpd/html
>>>
>>> 3. > I use telnet XXX.XXX.XXX.XXX 80 as root
>>> port 80 is what httpd listens to, and again, it doesn't receive who you
>>are.
>>> try it again, and enter "get"+enter. httpd should spit back an error
>>> because I don't know what a valid get command is. but you'll get the
>>> picture.
>>>
>>> 4. >I have root dir as /home/httpd/html - when the message says I do not
>>> have
>>> permission to access "/" is that the file system root?
>>>
>>> No, that is the "document root"
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: Robert D. Williams <[EMAIL PROTECTED]>
>>> To: RedHat <[EMAIL PROTECTED]>
>>> Sent: Monday, February 14, 2000 3:49 PM
>>> Subject: Can not get access to local www
>>>
>>>
>>> >
>>> >
>>> > Using Netscape I get (http://localhost):
>>> > "
>>> > Forbidden
>>> >
>>> > You don't have permission to access / on this server.
>>> >
>>> >
>>> > Apache/1.3.9 Server at http://XXX.XXX.XXX.XXX Port 80
>>> > "
>>> >
>>> > This happens when I am myself and root. I looked at the permissions and
>>> they
>>> > are 644 - correct (/home/httpd...). I use telnet XXX.XXX.XXX.XXX 80 as
>>> root
>>> > and it says I can not access the web server.
>>> >
>>> > I have root dir as /home/httpd/html - when the message says I do not
>>have
>>> > permission to access "/" is that the file system root?
>>> >
>>> > Please help!
>>> >
>>> >
>>> > --
>>> > Robert Williams [EMAIL PROTECTED]
>>> > Jarob Consulting [EMAIL PROTECTED]
>>> > Provo, Utah
>>> >
>>> >
>>> > --
>>> > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
>>> > as the Subject.
>>> >
>>>
>>>
>>> --
>>> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
>>> as the Subject.
>>>
>>
>>
>>--
>>To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
>>as the Subject.
>>
>
>
>
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.