apache UserDir problem

Discuss Applications

apache UserDir problem

Postby X11 » Mon Apr 03, 2006 11:50 am

I cannot get user directories to work, the public_html folder in my homedirectory has 755 permissions set, and these are the directives to httpd...

Code: Select all
UserDir /home/*/public_html
UserDir disabled
UserDir enabled x11

<Directory /home/*/public_html/>
        Options Indexes
        Order allow,deny
        Allow from all
</Directory>
<Directory /home/*/public_html/cgi-bin/>
        Options ExecCGI
        SetHandler cgi-script
</Directory>


Somehow, I thought that would work. I just get a permission denied error (403).
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Void Main » Mon Apr 03, 2006 12:06 pm

How about the permissions on your actual home directory? The apache user needs at "least" execute permission on your home directory for this to work:

$ chmod a+x ~
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Mon Apr 03, 2006 12:23 pm

Hmm just tried that its not working still :/
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby X11 » Mon Apr 03, 2006 12:34 pm

Just checked dmesg and I am getting these errors as well from SELinux...

Code: Select all
audit(1144089403.171:61): avc:  denied  { getattr } for  pid=7134 comm="httpd" name="public_html" dev=dm-0 ino=14862714 scontext=user_u:system_r:httpd_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=dir


(Note: FC5 system)

I have checked the security settings and it says its set to allow httpd to read user home directories. That was one of the first things I checked.
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Void Main » Mon Apr 03, 2006 2:26 pm

Are you running SELinux? Turn that crap off. :)

# system-config-securitylevel
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Applications

Who is online

Users browsing this forum: No registered users and 1 guest