Let us see how to enable the "UserDir public_html" directive.
So we will go to our Master system and in master system first, we will look at the include directive.
conf/httpd.cong, we are going to grep our include directive.
Include.
it is showing that conf.modules.d and then include optional is there conf.d that
mean when we start the Apache Web server, this file is read plus all the files which are in this directory
which are end with the conf are read.
But we are interested in finding out in which file we have to enable the UserDir directive.
So we will again search for one another ServerRoot parameter, now it is showing that /etc/httpd
that mean most of the configuration critical file they are in this directory.
So we will go to this directory
then there we will run this ls command.
Now this conf.d directory is there, conf.modules.d is there, and we will go to conf.d
directory
conf.d directory.
Again, we will list, now the most important file, userdir.
So what we are going to do, we will open this file with the Vi editor.
Now, this is the option we are going to disable this option and we are going to enable this option,
so we are going to enable this option.
So, that means you have to make changes in this file.
So we'll save this again.
We will.
With cat we are going to view that mean we have enabled the changes that we wanted, that mean now
what has happened.
We have enabled our UserDir public_html directive.
Then what we are going to do, we are going to systemctl reload http.
So we are going to reload system.
ctl reload http.
So that is our enabling how to enable this the demo of that.