apache2 + UserDir on FC3

Chong Yu Meng chongym
Sat Feb 19 23:16:17 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Collins !

I encountered the very same thing when I tried using UserDir. The
problem is with FC3's filesystem layout and permissions. If you are
redirecting to /home/some_user/public_html, you will find that Apache is
unable to navigate through /home because of permissions problems. The
way I resolved it was to change the permissions on /home (and
recursively through all the subdirectories) to this:

drwxr-xr-x   3 root root    20 Dec  3 10:12 home

I wasted quite a bit of time on this, actually. Hope this helps!

~ --------------------------------------
~ Pascal Chong

~ Visit me at : http://cymulacrum.net

~ He asked me if I knew what time it was -- I said yes, but not right now.
~                -- Steven Wright



Collins Richey wrote:
| I've just put up FC3 on my system again. Most things are working
| (sound not, but that's no surprise; the 2.6 kernel offered is pretty
| old). I've got apache up and working with php from the standard
| DocumentRoot, but I can't get ~collins/public_html/index.html or
| ...index.php to work. I always get You don't have permission to access
| /~collins/... on this server.
|
| I've added the following to /etc/httpd/conf/httpd.conf (similar to
| what I have on Gentoo), but no workie. And, yes, httpd was restarted
| after updating the .conf file.
|
| <IfModule mod_userdir.c>
|     UserDir public_html
| </IfModule>
|
| <Directory /home/*/public_html>
|     AllowOverride All
|     Options MultiViews -Indexes Includes FollowSymLinks
|     <IfModule mod_access.c>
|       Order allow,deny
|       Allow from all
|     </IfModule>
| </Directory>
|
| mod_userdir and mod_access are loaded earlier in the .conf file.
|
| What am I missing?
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCGA/AmVdpiRJSldgRAkOrAKCuKZ1ymlOe/Ms1OEFC82AGX2FxAACeM1UN
g1oGg7TaA8KOoJMjzWqXcQI=
=Doqv
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list