Hello friends welcome back in this lesson we're going to talk about hope to set up your own web server
in Linux.
OK but before actually installing the web server first understand what is a web server of if server
is a computer which is present somewhere on the Internet.
OK.
And the job of the supervisor or this computer is to deliver the requested pages.
OK.
The requested pages and by the users or the clients.
Suppose this client machine has opened a Aubert to dot com domain or get an suppose client machine user
and the users from that client machine.
Any link on Aubert to dot com.
And what happens is it since initial requests to this web server.
And in response this web server since that requested page back to the klank machine.
OK.
In this way the election is going on between client and server OK.
If the requested report is not available then it sends an error message back to the clag machine.
OK.
I hope you understand how the web server works.
OK.
There are plenty of software in the market which works as a web server but I want to show you the best
one.
So I would like to show you here how to install and configure Apache web server forget Betty is the
world's best virtual software in the market.
OK.
According to Wikipedia.
Up to now 100 million.
So give more than 100 million or so web sites has been sold by this software.
And according to the survey more than 43 or 40 persons of Web sites OK are available on Apache web server.
Ok so here let me show you how to install and configure the Apache web server in this Linux machine.
OK.
So let's see practically how good this.
OK first of all what you need to do is you need to type sudo install Apache to enter into your password
OK.
It says already the nearest million because I have already installed this on my machine.
So full installation complete I would like to show you the important files.
OK.
Configuration files about Apache web server.
So let's get inside see the DC and Becci to hogi and Ls or get here.
But you've got on the first file present here is the main configuration file for.
I bet you say so and hear about all the conflagrations.
OK.
Can be done in this fine.
OK.
Then here you can see all dot com.
This is the configuration file.
Ok where we can specify on which port number or so it should listen.
OK.
And there are some directories like got enabled on got available.
So the conflagrations feature really will for better or reside inside got available and gone God and
the world contains the enabler configurations.
OK then there is more reliable and mod's world.
So all the models which are available are reside inside this directory that is more available and all
that enabled the modules are reside inside more enable directly and there are also two directories sites
in the world and sites are liberal.
So all the websites which are available are reside in sites and the sites are sold inside sites in the
world.
OK.
So next I will show you some of the important files so lets get inside of that.
OK.
So here inside this valley you can see w w w OK at the end.
So lets get inside of you.
OK.
Here you can see DML.
So all the contents of insights that are really inside this directory.
All the contents.
So lets get in here.
You can see index dot its demand.
It is where it is in dummy for example website.
OK.
And a page which is printed inside this directory.
If you want to go to your own web site you can copy all the data here in this directory.
And you can enable that side OK.
After this I want to show you another important file log.
Sorry that
log.
Oh it said this you just need to get the Apache to.
OK.
Here you can see AXS dot log and dock log.
These are important files so what there were requests that were sent to your server are recorded in
this file that is access data log and whatever error messages are generated by the server are recorded
in error log file.
OK so suppose you are getting any kind of theatre then you can go to this error log and see the reason
for that error.
OK you can find the reason for that error.
OK.
Betty is a big concern.
OK you said big concern in this lesson.
Just I want to show you how to install and configure your own server.
Ok so this is just the basic thing that I would like to show.
And in the next lesson I'm going to show you how secure you were Apache web server.
Ok so now also worry's installed here.
OK.
So how do you check whether the server is running or not.
So just type so is that back to status.
OK.
It says running.
OK Apache the service is on disk systems it isn't in the socket there is no problem.
Press see clear.
OK I want to see the output of this or two this Windows machine.
So first of all go to devices in your what you box the network network settings and here the error once
and port forwarding.
OK here I'm going to put forward because I want to see the output of all was so what outside this virtual
box.
OK.
So here by the application you can type what you want.
OK.
Here the host IP.
So here you are going those IP OK or IPS this 1 9 2 1 6 0 1 0 1.
So just type in here 1 9 2 got 168.
Guard dog 1 0 1 0.
Here the port number.
OK.
I want to listen on port OK.
0 5 0 0.
And here is the IP address all future Linux machine that is then dot dot dot dot 16.
OK.
And the port number by default at petty runs on this port number and you can change the port number
where that it's can quantified.
OK.
Now it's still get so because Compaq's just cannot read not to go to 16 outside of that machine.
So for that you need to go this point forward.
So now just type these IP address like this and orthonormal here and Algie And here you can see the
output of our web server.
Ok this is the part number on which our server is listening.
OK.
Because we said in the port forwarding.
OK.
And this is the IP address.
Ok suppose you type the dot Facebook dot com that is the domain name and behind that domain name an
IP address is present.
OK.
Behen each domain name OK.
In our upcoming listen I'm going to show you how to set up an install were only and so were very you
are all concepts going to clear.
OK.
We'll be clear about the working of this concept.
OK.
So here our role is present.
OK.
OK after this that
you see the demand.
OK.
This is the main config.
This is the main page.
Ok here you can see next door mail.
This is the page.
This is that page that is next.
Not terrible.
OK.
So suppose I want to do some changes to it.
So pseudo right index for OK here you can see this is the data which is present.
I want to modify this to something as
it suppose I to here.
This site leads by OK it's not an hacking demonstration here but just to show you suppose this is your
own web site.
OK.
A Web site is a collection of different pages and files.
Suppose there is an audio or video file and all these files are linked to each other as a link or an
hyperlink.
And whenever we click on any link that link is delivered to the client by the way.
So.
OK.
So I modified this site here and so you know let's see let's replay this page and here you can see this
is the change.
OK these changes are called here.
OK.
In this way and which side looks OK you can do your own website.
The main file of any web site is named as in next door this day.
OK.
So you were there.
So it should present inside this directory as index not a statement.
And even then what the user types the IP address.
OK.
Then he will find your web page on his machine.
OK.
Because our site is present on our local network.
That's why it is you can call it as intranet and it is available publicly.
Then you can call it as Internet.
OK.
So in this way our votes are Valks.
OK.
In the next lesson I want to show you how to secure your vote.
So the.