1
00:00:00,090 --> 00:00:03,820
Let us see how to enable the "UserDir public_html" directive.

2
00:00:04,500 --> 00:00:12,990
So we will go to our Master system and in master system first, we will look at the include directive.

3
00:00:18,290 --> 00:00:24,380
conf/httpd.cong, we are going to grep our include directive.

4
00:00:28,910 --> 00:00:29,750
Include.

5
00:00:32,760 --> 00:00:41,520
it is showing that conf.modules.d and then include optional is there conf.d that

6
00:00:41,520 --> 00:00:49,110
mean when we start the Apache Web server, this file is read plus all the files which are in this directory

7
00:00:49,110 --> 00:00:53,790
which are end with the conf are read.

8
00:00:54,600 --> 00:01:06,230
But we are interested in finding out in which file we have to enable the UserDir directive.

9
00:01:06,720 --> 00:01:18,150
So we will again search for one another ServerRoot parameter, now it is showing that /etc/httpd

10
00:01:18,180 --> 00:01:24,070
that mean most of the configuration critical file they are in this directory.

11
00:01:24,480 --> 00:01:26,310
So we will go to this directory

12
00:01:28,950 --> 00:01:32,080
then there we will run this ls command.

13
00:01:32,760 --> 00:01:40,640
Now this conf.d directory is there, conf.modules.d is there, and we will go to conf.d

14
00:01:40,650 --> 00:01:41,370
directory

15
00:01:44,190 --> 00:01:47,480
conf.d directory.

16
00:01:48,390 --> 00:01:53,720
Again, we will list, now the most important file, userdir.

17
00:01:54,150 --> 00:01:58,770
So what we are going to do, we will open this file with the Vi editor.

18
00:02:03,200 --> 00:02:11,030
Now, this is the option we are going to disable this option and we are going to enable this option,

19
00:02:12,980 --> 00:02:15,780
so we are going to enable this option.

20
00:02:16,580 --> 00:02:20,770
So, that means you have to make changes in this file.

21
00:02:21,530 --> 00:02:24,980
So we'll save this again.

22
00:02:25,010 --> 00:02:25,510
We will.

23
00:02:28,400 --> 00:02:36,980
With cat we are going to view that mean we have enabled the changes that we wanted, that mean now

24
00:02:37,580 --> 00:02:38,410
what has happened.

25
00:02:38,660 --> 00:02:42,620
We have enabled our UserDir public_html directive.

26
00:02:43,760 --> 00:02:47,860
Then what we are going to do, we are going to systemctl reload http.

27
00:02:48,590 --> 00:02:52,880
So we are going to reload system.

28
00:02:53,780 --> 00:02:58,580
ctl reload http.

29
00:03:01,640 --> 00:03:06,230
So that is our enabling how to enable this the demo of that.
