Enable Apache UserDir In CentOS 7 / RHEL 7 with SELinux

Enable Apache UserDir In CentOS 7 / RHEL 7 with SELinux

Lets show you how to install userdir for Centos 7 with Selinux Enabled. In this method all users should have their own public_html directory.

1. Go to root user
su – root
2. Create /etc/httpd/conf.d/userdir.conf file

Install apache: 
yum install httpd -y
Enable Apache Userdirs
vi  /etc/httpd/conf.d/userdir.conf
add:
<IfModule mod_userdir.c>
Read More