»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-31-2004, 07:54 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
apache permissions borked

Suse9 apache2

/srv/www perms
drwxr-s--- 5 root www 176 Mar 31 22:00 .
drwxr-xr-x 4 root root 96 Jan 17 10:22 ..
-rwxr-xr-x 1 wwwrun www 0 Mar 31 22:00 .htacess
drwxr-s--- 3 root www 160 Jan 17 10:54 cgi-bin
-rw-r--r-- 1 wwwrun www 345 Mar 31 20:17 default.html
drwxr-s--- 4 root www 128 Jan 17 10:51 htdig
dr-xr-xr-x 4 wwwrun www 128 Jan 25 11:57 htdocs

according to /etc/sysconfig/apache2 the service runs under user 'wwwrun' and group 'www'

the .htaccess file is currently blank, even without it access is denied.

Quote:
Forbidden

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 (Linux/SuSE) Server at 192.168.1.106 Port 80
/var/log/apache2/error_log tells me what I already know

[Wed Mar 31 21:58:59 2004] [error] [client 192.168.1.106] (13)Permission denied: access to / denied
[Wed Mar 31 21:59:04 2004] [error] [client 192.168.1.106] (13)Permission denied: access to /default.html denied
[Wed Mar 31 22:00:22 2004] [error] [client 192.168.1.106] (13)Permission denied: access to /default.html denied
[Wed Mar 31 22:00:25 2004] [error] [client 192.168.1.106] (13)Permission denied: access to / denied


I'm only trying to access it from the local machine, or from my other machine on teh same network.

Ideas??!?

vass0922 is offline   Reply With Quote
Old 03-31-2004, 08:04 PM   #2 (permalink)
Registered User
 
golfcart's Avatar
 
Join Date: Oct 2001
Location: Michigan
Posts: 1,680
golfcart is on a distinguished road
I'm no guru, but does it do the same thing with an index.html file ?
golfcart is offline   Reply With Quote
Old 03-31-2004, 08:09 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Quote:
Forbidden

You don't have permission to access /index.html on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 (Linux/SuSE) Server at 192.168.1.106 Port 80
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 03-31-2004, 08:11 PM   #4 (permalink)
Registered User
 
golfcart's Avatar
 
Join Date: Oct 2001
Location: Michigan
Posts: 1,680
golfcart is on a distinguished road
Does default.html or index.html exist?
golfcart is offline   Reply With Quote
Old 03-31-2004, 08:15 PM   #5 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Adelaide, Australia
Posts: 5,267
Mickwish is on a distinguished road
Um, accessing on a LAN? How are you accessing? Form the server itself? Need to use http://localhost. Or if a client on the LAN, might need to use the LAN IP not the WAN IP (as some firewalls/routers will not let WAN traffic from LAN).

With no index.html, you won't have a target at all. But shouldn't get a forbidden error, though.

Cheers
Mick
__________________
Testing, testing....
Mickwish is offline   Reply With Quote
Old 03-31-2004, 08:19 PM   #6 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Re: apache permissions borked

Quote:
Originally posted by vass0922
Suse9 apache2

/srv/www perms
drwxr-s--- 5 root www 176 Mar 31 22:00 .
drwxr-xr-x 4 root root 96 Jan 17 10:22 ..
-rwxr-xr-x 1 wwwrun www 0 Mar 31 22:00 .htacess
drwxr-s--- 3 root www 160 Jan 17 10:54 cgi-bin
-rw-r--r-- 1 wwwrun www 345 Mar 31 20:17 default.html
drwxr-s--- 4 root www 128 Jan 17 10:51 htdig
dr-xr-xr-x 4 wwwrun www 128 Jan 25 11:57 htdocs

Trying from 'localhost' 'vasslinux' (servername) and localIP all same results
vass0922 is offline   Reply With Quote
Old 03-31-2004, 08:24 PM   #7 (permalink)
Registered User
 
golfcart's Avatar
 
Join Date: Oct 2001
Location: Michigan
Posts: 1,680
golfcart is on a distinguished road
I don't think it would hurt anything but noticed you have .htaccess spelled wrong.
golfcart is offline   Reply With Quote
Old 03-31-2004, 08:25 PM   #8 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Adelaide, Australia
Posts: 5,267
Mickwish is on a distinguished road
What's in the .conf file? What port is it listening on? What servername is binded?

Something is borked vass, but it's not Apache. User error?

Cheers
Mick
__________________
Testing, testing....
Mickwish is offline   Reply With Quote
Old 03-31-2004, 08:39 PM   #9 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
-- I don't think it would hurt anything but noticed you have .htaccess spelled wrong.
Fixed, no change :/

port 80
servername: vasslinux

Files:
uid.conf
------------
User wwwrun
Group www

listen.conf
--------------
Listen 80


default-server.conf
------------------
<Directory "/srv/www/">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 03-31-2004, 08:43 PM   #10 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Adelaide, Australia
Posts: 5,267
Mickwish is on a distinguished road
Ok, this is pretty basic, but.... .... what access to group www do you have? Since it's a permissions thing, may have nothing to do with Apache setup, but might be simple user permissions. What user are you logged in as? Try logging in as root and connecting. If it can as root,....

Cheers
Mick
__________________
Testing, testing....
Mickwish is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:26 PM.