here are the notes how to enable accessing homedir for httpd
enable access to home user directory
# /etc/httpd/conf/httpd.conf
locate UserDir section
<IfModule mod_userdir.c>
#
#
# UserDir disabled (comments this line)
#
#
to allow httpd accessing homedir set selinux by typing this command on terminal
# setsebool -P httpd_enable_homedirs 1
# chcon -R -t httpd_sys_content_t ~username/public_html
example.
# chcon -R -t httpd_sys_content_t ~belogix/public_html
notes:
~userid directory must have permission 711
~userid/public_html/ directory must have permission 755
check your setting by open your web browser pointed to http://ipaddrwebserver/~user/
enable access to home user directory
# /etc/httpd/conf/httpd.conf
locate UserDir section
<IfModule mod_userdir.c>
#
#
# UserDir disabled (comments this line)
#
#
to allow httpd accessing homedir set selinux by typing this command on terminal
# setsebool -P httpd_enable_homedirs 1
# chcon -R -t httpd_sys_content_t ~username/public_html
example.
# chcon -R -t httpd_sys_content_t ~belogix/public_html
notes:
~userid directory must have permission 711
~userid/public_html/ directory must have permission 755
check your setting by open your web browser pointed to http://ipaddrwebserver/~user/
Comments
Post a Comment