1
00:00:00,270 --> 00:00:04,810
Now we are going to modify the lab settings in next few videos.

2
00:00:05,040 --> 00:00:13,230
We will be looking at the Lamp Stack, Linux, apache, mysql, PHP, so we do not need certain settings.

3
00:00:13,680 --> 00:00:20,220
So first of all, we will go to the /var/www/html directory and remove all the things there, because now we

4
00:00:20,220 --> 00:00:26,730
do not need the settings of Lab that we were using in the last few videos.

5
00:00:26,970 --> 00:00:28,020
IP hosting.

6
00:00:28,080 --> 00:00:31,450
virtual ip based virtual hosting lab.

7
00:00:31,510 --> 00:00:38,400
So we are going to delete all the data, then we are going to remove that Webpass group directory also

8
00:00:38,730 --> 00:00:43,000
if we have not already removed, then we will go to the Vi.

9
00:00:43,530 --> 00:00:50,320
our httpd.conf file using Vi editor and we are going to remove those virtual host

10
00:00:50,360 --> 00:00:56,630
settings and all the other options which we have made changes and what we are going to do.

11
00:00:56,970 --> 00:01:07,230
We will go to our, network configuration file, ifcfg-ens33, and we are going to instead

12
00:01:07,230 --> 00:01:13,050
of three addresses, we will make the address to single address that mean.

13
00:01:13,410 --> 00:01:15,630
bootprotocol is going to be static.

14
00:01:15,630 --> 00:01:20,010
And we are going to enter that address IPADDR 172.24.0.1.

15
00:01:20,400 --> 00:01:24,470
And NETMASK is going to be 255.255.0.0.

16
00:01:24,900 --> 00:01:32,970
Then we will restart the network service and then we will verify whether what is the IP address

17
00:01:32,970 --> 00:01:37,920
of our system that mean we want to move back to our original state.

18
00:01:38,320 --> 00:01:41,430
So let us first go to our master system.

19
00:01:42,590 --> 00:01:53,940
And in master system, we will go to which directly, cd /var/www/html directory.

20
00:01:55,220 --> 00:01:57,480
So lot of data is there.

21
00:01:57,500 --> 00:02:00,110
So rm -rf minus *

22
00:02:01,400 --> 00:02:07,970
r means recursively, f means forcefully to remove all the data, please run this command carefully

23
00:02:08,360 --> 00:02:10,980
because it is going to delete all the data.

24
00:02:11,900 --> 00:02:16,910
So make sure that we are running this command here, then we are going to remove.

25
00:02:18,080 --> 00:02:20,750
So whatever files we have made.

26
00:02:24,250 --> 00:02:32,530
I think we removed that, already we removed that file, so no need for that then what we are

27
00:02:32,530 --> 00:02:43,300
going to do, we are going to go into our configuration file httpd/conf/httpd.conf file.

28
00:02:44,570 --> 00:02:51,110
Then we will go to the end and we are going to remove these lines, whatever changes we have made,

29
00:02:51,560 --> 00:02:55,280
so we are going to delete these lines, all the lines.

30
00:02:55,640 --> 00:02:57,410
We do not need these lines.

31
00:02:58,820 --> 00:03:01,130
So we are going to delete.

32
00:03:02,560 --> 00:03:03,850
Then we will escape.

33
00:03:04,120 --> 00:03:05,020
We will save.

34
00:03:07,030 --> 00:03:10,480
We will verify with configtest.

35
00:03:13,150 --> 00:03:20,260
Whether the syntax is okay, then what we are going to do and we will restart this also so that new

36
00:03:20,260 --> 00:03:20,950
settings.

37
00:03:24,090 --> 00:03:26,670
are effective than what we are going to do?

38
00:03:27,000 --> 00:03:29,130
We will open our networking file.

39
00:03:32,930 --> 00:03:33,500
sysconfig.

40
00:03:36,200 --> 00:03:37,820
network-scripts.

41
00:03:40,590 --> 00:03:43,500
ifcfg-ens33.

42
00:03:44,420 --> 00:03:47,630
So we are going to remove these four lines

43
00:03:50,690 --> 00:03:56,660
that mean we do not want three addresses, we want only one address, so we will.

44
00:03:59,580 --> 00:04:06,000
Come back to the initial setting, that mean we are specifying IPADDR 172.24.0.1 and NETMASK

45
00:04:06,000 --> 00:04:06,870
is this.

46
00:04:07,860 --> 00:04:09,720
So we will save the settings.

47
00:04:11,050 --> 00:04:17,950
So after saving the settings, what we are going to do, we will clear the screen and we will run this

48
00:04:17,950 --> 00:04:31,120
command systemctl then which service we want to restart, restart network, and

49
00:04:31,120 --> 00:04:40,390
then we will verify with which command ip a s ens33 command that mean we want to verify how many

50
00:04:40,420 --> 00:04:42,280
addresses we have got now.

51
00:04:43,150 --> 00:04:44,880
ens33.

52
00:04:46,270 --> 00:04:50,440
So one address is there 172.24.0.1.

53
00:04:50,800 --> 00:04:53,750
That means we have moved back to the original settings.

54
00:04:54,970 --> 00:04:58,630
Now we are ready for implementing over Lamp stack.
