Now let's check the Apache package and default home directory and then create a default home page and take
the backup of your httpd.config file, which is the main Apache configuration file.
So we are going to go to our master system.
So first command that we are going to run.
is rpm -q query httpd.
So a package is already there, and the version of Apache is http 2.4, the previous Version was 2.2.
There are a lot of changes in 2.2 and 2.4.
So here the package is 2.4.
So we will go into that /var/www/html directory and we will verify whether there is something or not.
Initially, this directory is going to be empty and let us verify our address also ens33.
So this is having the address 172.24.0.1.
Now, what we are going to do, we are going to create some webpage, how we are going to create the
Web page, we know that to how to create our Web page.
So we will go into which directory.
We will go to our, we will see cat.
And the name of that is going to be our that mean cat.
index.html, we are going to create the page.
What will be the name of our page?
We are going to say welcome to test website.
So this is the page name.
Welcome to Test Web page.
That means we are creating the file with cat command.
You can create it with a vi editor.
Also with the control D we are saving with the ls you can check that file is there then what we are
going to do.
We are going to take the backup and of which file, your main configuration file and that main configuration
file is in /etc/httpd/conf/ directory.
And the name of the file is httpd.conf, then curly bracket comma dot bak.
That mean we are going to take the backup as a bak file.
Then we will see whether the file is there or not, backup is there or not with this.
Command.
So.
Your original file is also available, your backup is also available, and then what you're going to do, you're
going to edit this file that we will see in the next videos so.
Already we have created one default page that we have done according to the instructions that we have
specified.