403 Forbidden error solution
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disabled
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>
After that, you still have to deal with SELINUX and file permission setup in order to allow "apache" to access your files.
One way to do this is:
1. set your home folder "/home/user101" permission to 711.
2. set your "public_html" folder permission to 755.
3. set your files in the "public_html" folder permission to 644.
4. chcon -t httpd_sys_content_t /home/user101.
5. chcon -R -t httpd_sys_content_t /home/user101/public_html.
reference
ReplyDeletehttp://www.fedoraforum.org/forum/showthread.php?t=266311