Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is it with Apache2 and public_html?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DingoStick
n00b
n00b


Joined: 05 Mar 2003
Posts: 63
Location: The Keweenaw

PostPosted: Tue Nov 04, 2003 6:27 am    Post subject: What is it with Apache2 and public_html? Reply with quote

I've read over a half dozen posts here regarding problems with Apache2 and public_html - all the same error I'm getting - and none of the solutions work for me. When I go to http://localhost/~user/, I get a 403 error, and a 403 ErrorDocument error. I can't seem to get it to work. So hopefully someone who knows Apache2's quirks can help out a little. Here's what I've got:


Apache2 running as apache.apache.
My user's public_html permissions are 755.
In my commonapache2.conf, I have:

Code:
<Directory /home/*/public_html>
    AllowOverride All
    Options MultiViews +Indexes Includes FollowSymLinks
    <IfModule mod_access.c>
      Order deny,allow
      Allow from all
    </IfModule>
</Directory>


I've tried changing "Order deny,allow" to "Order allow,deny", and I've tried explicitly putting in an entry for my particular username. After restarting Apache and reloading localhost/~username/, I still get the same error message. I can't seem to get it to give me access to my home directory over Apache.

Does anyone know what I'm doing wrong?
_________________

Linux programs, themes, howtos, etc.
Back to top
View user's profile Send private message
Souperman
Guru
Guru


Joined: 14 Jul 2003
Posts: 449
Location: Cape Town, South Africa

PostPosted: Tue Nov 04, 2003 7:49 am    Post subject: Reply with quote

What does /var/log/apache2/error_log have to say about it?
_________________
moo
Back to top
View user's profile Send private message
ariejan
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2002
Posts: 100
Location: Eindhoven, The Netherlands

PostPosted: Tue Nov 04, 2003 10:28 am    Post subject: Reply with quote

Are you sure permissions are set correctly for apache to access /home/user/public_html ??
Back to top
View user's profile Send private message
DingoStick
n00b
n00b


Joined: 05 Mar 2003
Posts: 63
Location: The Keweenaw

PostPosted: Tue Nov 04, 2003 2:12 pm    Post subject: Reply with quote

gpd wrote:
What does /var/log/apache2/error_log have to say about it?


Code:
[Tue Nov 04 01:34:18 2003] [error] [client 127.0.0.1] (13)Permission denied: access to /~ds/ denied



ariejan wrote:
Are you sure permissions are set correctly for apache to access /home/user/public_html ??


As far as I know, permissions are set properly. Maybe I'm missing something, though.
_________________

Linux programs, themes, howtos, etc.
Back to top
View user's profile Send private message
indros
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2002
Posts: 139

PostPosted: Tue Nov 04, 2003 3:37 pm    Post subject: Reply with quote

Check to make sure the apache user/group has read access to /home/user. Correct permissions on /home/user/public_html may be right, but apache will be blue in the face if it can access /home/user.
Back to top
View user's profile Send private message
DingoStick
n00b
n00b


Joined: 05 Mar 2003
Posts: 63
Location: The Keweenaw

PostPosted: Tue Nov 04, 2003 3:55 pm    Post subject: Reply with quote

indros wrote:
Check to make sure the apache user/group has read access to /home/user. Correct permissions on /home/user/public_html may be right, but apache will be blue in the face if it can access /home/user.


Thanks, that did it for me. I figured it'd be something goofy. :-/ Much appreciated.
_________________

Linux programs, themes, howtos, etc.
Back to top
View user's profile Send private message
MrBrain
n00b
n00b


Joined: 18 Mar 2004
Posts: 23

PostPosted: Mon Apr 19, 2004 8:59 pm    Post subject: Reply with quote

indros wrote:
Check to make sure the apache user/group has read access to /home/user. Correct permissions on /home/user/public_html may be right, but apache will be blue in the face if it can access /home/user.


Actually execute access will do, then other users cannot list files and see what you have in your home dir :wink:
_________________
who said gentoo was fast ?-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum