1
00:00:00,560 --> 00:00:08,420
Now let's check the Apache package and default home directory and then create a default home page and take

2
00:00:08,420 --> 00:00:14,840
the backup of your httpd.config file, which is the main Apache configuration file.

3
00:00:15,110 --> 00:00:18,390
So we are going to go to our master system.

4
00:00:19,070 --> 00:00:21,560
So first command that we are going to run.

5
00:00:21,560 --> 00:00:26,450
is rpm -q query httpd.

6
00:00:27,860 --> 00:00:37,760
So a package is already there, and the version of Apache is http 2.4, the previous Version was 2.2.

7
00:00:37,790 --> 00:00:41,020
There are a lot of changes in 2.2 and 2.4.

8
00:00:41,390 --> 00:00:43,930
So here the package is 2.4.

9
00:00:44,630 --> 00:00:54,930
So we will go into that /var/www/html directory and we will verify whether there is something or not.

10
00:00:55,430 --> 00:01:04,540
Initially, this directory is going to be empty and let us verify our address also ens33.

11
00:01:05,150 --> 00:01:09,080
So this is having the address 172.24.0.1.

12
00:01:10,920 --> 00:01:17,550
Now, what we are going to do, we are going to create some webpage, how we are going to create the

13
00:01:17,550 --> 00:01:21,510
Web page, we know that to how to create our Web page.

14
00:01:21,520 --> 00:01:23,850
So we will go into which directory.

15
00:01:24,540 --> 00:01:28,740
We will go to our, we will see cat.

16
00:01:29,130 --> 00:01:34,350
And the name of that is going to be our that mean cat.

17
00:01:36,050 --> 00:01:42,620
index.html, we are going to create the page.

18
00:01:43,670 --> 00:01:45,540
What will be the name of our page?

19
00:01:46,220 --> 00:01:48,960
We are going to say welcome to test website.

20
00:01:49,430 --> 00:01:50,780
So this is the page name.

21
00:01:51,650 --> 00:02:00,600
Welcome to Test Web page.

22
00:02:02,240 --> 00:02:05,950
That means we are creating the file with cat command.

23
00:02:05,960 --> 00:02:07,820
You can create it with a vi editor.

24
00:02:07,820 --> 00:02:16,370
Also with the control D we are saving with the ls you can check that file is there then what we are

25
00:02:16,370 --> 00:02:16,910
going to do.

26
00:02:17,060 --> 00:02:27,290
We are going to take the backup and of which file, your main configuration file and that main configuration

27
00:02:27,290 --> 00:02:32,320
file is in /etc/httpd/conf/ directory.

28
00:02:32,330 --> 00:02:41,060
And the name of the file is httpd.conf, then curly bracket comma dot bak.

29
00:02:41,630 --> 00:02:44,720
That mean we are going to take the backup as a bak file.

30
00:02:46,570 --> 00:02:56,140
Then we will see whether the file is there or not, backup is there or not with this.

31
00:02:56,140 --> 00:02:56,530
Command.

32
00:02:57,490 --> 00:02:58,180
So.

33
00:02:59,580 --> 00:03:06,360
Your original file is also available, your backup is also available, and then what you're going to do, you're

34
00:03:06,360 --> 00:03:14,160
going to edit this file that we will see in the next videos so.

35
00:03:14,910 --> 00:03:22,740
Already we have created one default page that we have done according to the instructions that we have

36
00:03:22,740 --> 00:03:23,460
specified.
