[olug] Apache problems between CentOS 3.x and 4.x

Daniel Linder dan at linder.org
Tue Jul 19 23:12:56 UTC 2005


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


Michael Peterson said:
> Has anyone figured out the fix to be able to allow browsers to view pages
> in user directories with CentOS 4.x?
>
> I get this response.
> Forbidden
> You don't have permission to access /~<username>/ on this server.

Check to make sure it isn't a permissions problem.  Make sure the users
Apache is running under has the ability to change into and read your
~/public_html directory and files.

Here are the steps that I have taken that should work:
1: Make the users home directory "world execute":
  chmod o+x /home/user1
2: Make the public_html directory (and sub-directories) "world execute":
  chmod o+x -R /home/user1/public_html
3: Make the files in /home/user1/public_html "world readable":
  chmod o+r /home/user1/public_html/*

Those steps worked with my Apache setup on an old RH 9.0 server.

Dan

- - - - -
"Wait for that wisest of all counselors, time." -- Pericles
"I do not fear computer, I fear the lack of them." -- Isaac Asimov
GPG fingerprint:9EE8 ABAE 10D3 0B55 C536  E17A 3620 4DCA A533 19BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFC3Yj4NiBNyqUzGb8RAhhVAJ9+PueL3dXQJ4Mv7yr/UKoC1YsdOgCeN7Gs
krJTrx+pNh4a26o4Ml3nUv8=
=cS9A
-----END PGP SIGNATURE-----



More information about the OLUG mailing list