Now we are going to modify the lab settings in next few videos.
We will be looking at the Lamp Stack, Linux, apache, mysql, PHP, so we do not need certain settings.
So first of all, we will go to the /var/www/html directory and remove all the things there, because now we
do not need the settings of Lab that we were using in the last few videos.
IP hosting.
virtual ip based virtual hosting lab.
So we are going to delete all the data, then we are going to remove that Webpass group directory also
if we have not already removed, then we will go to the Vi.
our httpd.conf file using Vi editor and we are going to remove those virtual host
settings and all the other options which we have made changes and what we are going to do.
We will go to our, network configuration file, ifcfg-ens33, and we are going to instead
of three addresses, we will make the address to single address that mean.
bootprotocol is going to be static.
And we are going to enter that address IPADDR 172.24.0.1.
And NETMASK is going to be 255.255.0.0.
Then we will restart the network service and then we will verify whether what is the IP address
of our system that mean we want to move back to our original state.
So let us first go to our master system.
And in master system, we will go to which directly, cd /var/www/html directory.
So lot of data is there.
So rm -rf minus *
r means recursively, f means forcefully to remove all the data, please run this command carefully
because it is going to delete all the data.
So make sure that we are running this command here, then we are going to remove.
So whatever files we have made.
I think we removed that, already we removed that file, so no need for that then what we are
going to do, we are going to go into our configuration file httpd/conf/httpd.conf file.
Then we will go to the end and we are going to remove these lines, whatever changes we have made,
so we are going to delete these lines, all the lines.
We do not need these lines.
So we are going to delete.
Then we will escape.
We will save.
We will verify with configtest.
Whether the syntax is okay, then what we are going to do and we will restart this also so that new
settings.
are effective than what we are going to do?
We will open our networking file.
sysconfig.
network-scripts.
ifcfg-ens33.
So we are going to remove these four lines
that mean we do not want three addresses, we want only one address, so we will.
Come back to the initial setting, that mean we are specifying IPADDR 172.24.0.1 and NETMASK
is this.
So we will save the settings.
So after saving the settings, what we are going to do, we will clear the screen and we will run this
command systemctl then which service we want to restart, restart network, and
then we will verify with which command ip a s ens33 command that mean we want to verify how many
addresses we have got now.
ens33.
So one address is there 172.24.0.1.
That means we have moved back to the original settings.
Now we are ready for implementing over Lamp stack.