Click to See Complete Forum and Search --> : 403 Forbidden


nyazdani
06-10-2000, 10:02 AM
I am having a problem getting Apache up. I got an error in the httpd.conf file and I found the line DocumentRoot "/home/httpd/html"" line had the extra quotes at the end of it and I removed the quotes. I don't know where the extra " came from. Now, when I try to connect to my server [from my server] using netscape I get a 403 Forbidden error msg. I have also added a firewall recently using easyfw but I only have the masquerading set.

help!

Paul Weaver
06-10-2000, 10:06 AM
Make sure that you have set your httpd directory and html directory world readable (drwxr-xr-x)

Its something to do with this.

Paul Weaver
06-10-2000, 10:08 AM
Make sure that you have set your httpd directory and html directory world readable (drwxr-xr-x)

Its something to do with this.

nyazdani
06-10-2000, 11:09 AM
the permissions on the /home/httpd dir are set to drwxr-xr-x and /home/httpd/html are set to drwxr-xr-x

any other ideas?

nyazdani
06-10-2000, 11:29 AM
also the msg i get in netscape is

Forbidden
You don't have permission to access / on this server

should it be trying to access / ?

Sweede
06-10-2000, 11:52 AM
/
/home
/home/httpd
/home/httpd/html

all must be world executable.
701 works for all that.

nyazdani
06-10-2000, 04:38 PM
I have all of the permissions set to world readable and executable and it still doesn't work.

can someone tell me what they have in their httpd.conf file for DocumentRoot

I am using redhat 6.2

marouf
06-10-2000, 05:20 PM
Originally posted by nyazdani:
I have all of the permissions set to world readable and executable and it still doesn't work.

can someone tell me what they have in their httpd.conf file for DocumentRoot

I am using redhat 6.2

DocumentRoot "/home/www"
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/home/www">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes Includes FollowSymLinks

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

Hope that helped.

Hey, go check your log files as well
what does /var/log/httpd/error say?

nyazdani
06-10-2000, 06:22 PM
i added the lines you sent me to the bottom of the httpd.conf file and it still doesn't work

i checked the logs and the error i am getting is:

client denied by server configuration: /home/httpd/html

any other ideas or should i re-install redhat which had it setup corectly after install

marouf
06-10-2000, 06:55 PM
No no. you don;t have to re-install linux just because a program is not working

did u check if your httpd.conf already had the lines I sent you?

do a <b>locate</b> for apachectl

when u find it, run it with ./apachectl configtest

that should tell you if your syntax is correct

bash# ./apachectl configtest
Syntax OK
bash#

then start up or restart apache as you normally would. then hopefully it would be working.

let me know what happens mate, this should be a peace of piss

nyazdani
06-10-2000, 07:05 PM
i couldn't locate apachectl

marouf
06-10-2000, 07:12 PM
hmmm..

what are you using to start/stop apache ?

oh ok.. the apachectl is if you compiled from source

you can type httpd -t for a config test

[root@ip marouf]# httpd -t
Syntax OK
[root@ip marouf]#


[This message has been edited by marouf (edited 10 June 2000).]

Golden_Eternity
06-10-2000, 07:19 PM
If you are using redhat, linuxconf can be used to do some configuration of apache... could be worth a shot.

nyazdani
06-10-2000, 08:22 PM
i typed httpd -t
and i got
Syntax OK

I had some strange behavior from LinuxConf
it seems to change my DirectoryRoot to "/home/httpd/html"" with an extra " at the end like i showed ... it consistently did this for DirectoryRoot and a CGI directory

marouf
06-11-2000, 01:24 PM
nyazdani, Any luck with apache?

nyazdani
06-12-2000, 10:44 AM
i had to reinstall using rh6.2 and now it is all working. the httpd.conf file looks much better now and i backed it up in case it gets screwed up again. i have problems with linuxconf feezing or acting a bit funny so i wonder if it screwed up the file or if i did it since i am a newbie.

ryba
11-01-2000, 06:12 PM
I have had the same problem with RH 6.2 and apache. Everything was working fine and server was processing requests. I've basically tried everything everyone has mentioned on this thread. I think I will just download apache and compile from the source.
How do I go about uninstalling the original Apache install that came with Rhat? Is this just a rpm file that i need to remove?

ryba
11-01-2000, 10:41 PM
Okay,
I haven't given up yet. When I verify the package (apache) via Gnome's RPM manager, I get the following problems.

file:
/etc/httpd/conf/httpd.conf
problem:
md5, file size, modification time, file mode

file:
/home/httpd/html/index.html
problem:
md5, file size, modification time

To proceed from here. What is the best way to correct these problems?

thanks!