2015-02-02

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

2. Create /etc/httpd/conf.d/userdir.conf file

Install apache:

Enable Apache Userdirs

add:

Restart apache

Then create user’s public_html and assign permissions.

Then here’s the other new things, especially you are using SELinux

Lets make a test

add:

Change ownership

Run the test by navigating to the following URL from your browser.



Done.



Advertise here with BSA

---------------------------------------------------------------------
Linux Basics: How To Enable Apache UserDir In CentOS 7/RHEL 7

Show more