WEBVTT

00:09.370 --> 00:14.950
Hello friends welcome back in this lesson we're going to talk about hope to set up your own web server

00:15.010 --> 00:15.920
in Linux.

00:16.090 --> 00:22.660
OK but before actually installing the web server first understand what is a web server of if server

00:22.690 --> 00:25.780
is a computer which is present somewhere on the Internet.

00:25.920 --> 00:26.600
OK.

00:26.610 --> 00:32.420
And the job of the supervisor or this computer is to deliver the requested pages.

00:32.560 --> 00:33.310
OK.

00:33.900 --> 00:38.220
The requested pages and by the users or the clients.

00:39.220 --> 00:49.090
Suppose this client machine has opened a Aubert to dot com domain or get an suppose client machine user

00:49.120 --> 00:51.430
and the users from that client machine.

00:51.550 --> 00:53.590
Any link on Aubert to dot com.

00:53.600 --> 00:59.080
And what happens is it since initial requests to this web server.

00:59.260 --> 01:05.870
And in response this web server since that requested page back to the klank machine.

01:06.050 --> 01:06.340
OK.

01:06.350 --> 01:12.460
In this way the election is going on between client and server OK.

01:12.790 --> 01:19.980
If the requested report is not available then it sends an error message back to the clag machine.

01:20.280 --> 01:20.890
OK.

01:20.980 --> 01:24.550
I hope you understand how the web server works.

01:24.550 --> 01:25.170
OK.

01:25.620 --> 01:25.970
OK.

01:26.020 --> 01:32.710
There are plenty of software in the market which works as a web server but I want to show you the best

01:32.710 --> 01:33.140
one.

01:33.160 --> 01:40.090
So I would like to show you here how to install and configure Apache web server forget Betty is the

01:40.090 --> 01:43.850
world's best virtual software in the market.

01:43.850 --> 01:44.340
OK.

01:44.590 --> 01:46.020
According to Wikipedia.

01:46.030 --> 01:47.740
Up to now 100 million.

01:47.750 --> 01:53.650
So give more than 100 million or so web sites has been sold by this software.

01:54.490 --> 02:04.450
And according to the survey more than 43 or 40 persons of Web sites OK are available on Apache web server.

02:04.550 --> 02:12.870
Ok so here let me show you how to install and configure the Apache web server in this Linux machine.

02:13.090 --> 02:13.670
OK.

02:13.990 --> 02:16.880
So let's see practically how good this.

02:17.200 --> 02:28.060
OK first of all what you need to do is you need to type sudo install Apache to enter into your password

02:29.960 --> 02:30.360
OK.

02:30.360 --> 02:36.230
It says already the nearest million because I have already installed this on my machine.

02:36.520 --> 02:43.030
So full installation complete I would like to show you the important files.

02:43.070 --> 02:43.730
OK.

02:43.970 --> 02:47.510
Configuration files about Apache web server.

02:47.540 --> 02:57.310
So let's get inside see the DC and Becci to hogi and Ls or get here.

02:57.550 --> 03:02.990
But you've got on the first file present here is the main configuration file for.

03:02.990 --> 03:07.290
I bet you say so and hear about all the conflagrations.

03:07.340 --> 03:07.960
OK.

03:08.150 --> 03:10.380
Can be done in this fine.

03:10.570 --> 03:11.120
OK.

03:11.310 --> 03:14.540
Then here you can see all dot com.

03:14.730 --> 03:16.560
This is the configuration file.

03:16.630 --> 03:22.140
Ok where we can specify on which port number or so it should listen.

03:22.480 --> 03:23.080
OK.

03:23.380 --> 03:29.010
And there are some directories like got enabled on got available.

03:29.030 --> 03:37.700
So the conflagrations feature really will for better or reside inside got available and gone God and

03:37.700 --> 03:41.430
the world contains the enabler configurations.

03:41.470 --> 03:45.540
OK then there is more reliable and mod's world.

03:45.710 --> 03:52.330
So all the models which are available are reside inside this directory that is more available and all

03:52.330 --> 03:59.960
that enabled the modules are reside inside more enable directly and there are also two directories sites

04:00.050 --> 04:02.170
in the world and sites are liberal.

04:02.180 --> 04:10.100
So all the websites which are available are reside in sites and the sites are sold inside sites in the

04:10.100 --> 04:10.690
world.

04:10.970 --> 04:11.680
OK.

04:12.080 --> 04:18.520
So next I will show you some of the important files so lets get inside of that.

04:18.880 --> 04:19.470
OK.

04:19.880 --> 04:24.580
So here inside this valley you can see w w w OK at the end.

04:24.770 --> 04:27.200
So lets get inside of you.

04:27.650 --> 04:28.420
OK.

04:28.430 --> 04:30.250
Here you can see DML.

04:30.380 --> 04:35.670
So all the contents of insights that are really inside this directory.

04:35.690 --> 04:36.840
All the contents.

04:37.010 --> 04:39.490
So lets get in here.

04:39.570 --> 04:42.580
You can see index dot its demand.

04:42.610 --> 04:46.640
It is where it is in dummy for example website.

04:46.690 --> 04:47.200
OK.

04:47.270 --> 04:47.690
OK.

04:47.740 --> 04:50.570
And a page which is printed inside this directory.

04:50.570 --> 04:56.500
If you want to go to your own web site you can copy all the data here in this directory.

04:56.690 --> 05:00.600
And you can enable that side OK.

05:01.070 --> 05:06.830
After this I want to show you another important file log.

05:07.050 --> 05:09.780
Sorry that

05:12.410 --> 05:13.160
log.

05:13.550 --> 05:20.780
Oh it said this you just need to get the Apache to.

05:21.080 --> 05:21.700
OK.

05:21.950 --> 05:26.550
Here you can see AXS dot log and dock log.

05:26.570 --> 05:35.990
These are important files so what there were requests that were sent to your server are recorded in

05:35.990 --> 05:44.150
this file that is access data log and whatever error messages are generated by the server are recorded

05:44.210 --> 05:46.270
in error log file.

05:46.480 --> 05:53.720
OK so suppose you are getting any kind of theatre then you can go to this error log and see the reason

05:54.170 --> 05:55.470
for that error.

05:55.600 --> 05:58.860
OK you can find the reason for that error.

05:59.210 --> 05:59.630
OK.

05:59.630 --> 06:01.160
Betty is a big concern.

06:01.200 --> 06:03.780
OK you said big concern in this lesson.

06:03.780 --> 06:08.780
Just I want to show you how to install and configure your own server.

06:09.020 --> 06:14.260
Ok so this is just the basic thing that I would like to show.

06:14.330 --> 06:20.090
And in the next lesson I'm going to show you how secure you were Apache web server.

06:20.260 --> 06:24.160
Ok so now also worry's installed here.

06:24.710 --> 06:25.310
OK.

06:25.310 --> 06:28.930
So how do you check whether the server is running or not.

06:29.150 --> 06:36.020
So just type so is that back to status.

06:36.280 --> 06:37.030
OK.

06:37.070 --> 06:38.170
It says running.

06:38.210 --> 06:44.400
OK Apache the service is on disk systems it isn't in the socket there is no problem.

06:44.400 --> 06:47.740
Press see clear.

06:48.180 --> 06:54.050
OK I want to see the output of this or two this Windows machine.

06:54.050 --> 07:01.910
So first of all go to devices in your what you box the network network settings and here the error once

07:02.420 --> 07:04.820
and port forwarding.

07:04.820 --> 07:12.260
OK here I'm going to put forward because I want to see the output of all was so what outside this virtual

07:12.260 --> 07:12.920
box.

07:13.160 --> 07:14.010
OK.

07:14.360 --> 07:20.600
So here by the application you can type what you want.

07:20.720 --> 07:21.020
OK.

07:21.020 --> 07:22.820
Here the host IP.

07:22.970 --> 07:33.980
So here you are going those IP OK or IPS this 1 9 2 1 6 0 1 0 1.

07:33.980 --> 07:39.120
So just type in here 1 9 2 got 168.

07:39.160 --> 07:42.690
Guard dog 1 0 1 0.

07:43.490 --> 07:45.910
Here the port number.

07:46.100 --> 07:46.850
OK.

07:47.060 --> 07:51.980
I want to listen on port OK.

07:52.220 --> 07:53.630
0 5 0 0.

07:53.930 --> 08:03.130
And here is the IP address all future Linux machine that is then dot dot dot dot 16.

08:03.600 --> 08:03.960
OK.

08:04.010 --> 08:10.310
And the port number by default at petty runs on this port number and you can change the port number

08:10.310 --> 08:13.070
where that it's can quantified.

08:13.100 --> 08:13.640
OK.

08:13.920 --> 08:29.080
Now it's still get so because Compaq's just cannot read not to go to 16 outside of that machine.

08:29.920 --> 08:33.170
So for that you need to go this point forward.

08:33.250 --> 08:43.920
So now just type these IP address like this and orthonormal here and Algie And here you can see the

08:43.930 --> 08:45.950
output of our web server.

08:46.220 --> 08:50.580
Ok this is the part number on which our server is listening.

08:50.590 --> 08:51.810
OK.

08:52.030 --> 08:54.320
Because we said in the port forwarding.

08:54.400 --> 08:54.870
OK.

08:55.150 --> 08:57.250
And this is the IP address.

08:57.770 --> 09:04.840
Ok suppose you type the dot Facebook dot com that is the domain name and behind that domain name an

09:04.960 --> 09:06.240
IP address is present.

09:06.280 --> 09:06.590
OK.

09:06.600 --> 09:09.000
Behen each domain name OK.

09:09.010 --> 09:16.210
In our upcoming listen I'm going to show you how to set up an install were only and so were very you

09:16.230 --> 09:18.760
are all concepts going to clear.

09:18.880 --> 09:19.320
OK.

09:19.360 --> 09:24.250
We'll be clear about the working of this concept.

09:24.280 --> 09:24.830
OK.

09:25.150 --> 09:27.660
So here our role is present.

09:27.850 --> 09:28.330
OK.

09:28.500 --> 09:31.860
OK after this that

09:34.910 --> 09:37.380
you see the demand.

09:37.690 --> 09:38.040
OK.

09:38.050 --> 09:39.460
This is the main config.

09:39.460 --> 09:40.720
This is the main page.

09:40.730 --> 09:43.290
Ok here you can see next door mail.

09:43.570 --> 09:45.240
This is the page.

09:45.400 --> 09:47.510
This is that page that is next.

09:47.520 --> 09:48.560
Not terrible.

09:48.700 --> 09:49.730
OK.

09:49.960 --> 09:54.730
So suppose I want to do some changes to it.

09:55.120 --> 10:04.730
So pseudo right index for OK here you can see this is the data which is present.

10:05.080 --> 10:08.630
I want to modify this to something as

10:12.380 --> 10:17.700
it suppose I to here.

10:18.140 --> 10:32.920
This site leads by OK it's not an hacking demonstration here but just to show you suppose this is your

10:32.920 --> 10:33.750
own web site.

10:33.760 --> 10:34.150
OK.

10:34.180 --> 10:38.560
A Web site is a collection of different pages and files.

10:38.560 --> 10:44.370
Suppose there is an audio or video file and all these files are linked to each other as a link or an

10:44.380 --> 10:45.730
hyperlink.

10:45.910 --> 10:51.860
And whenever we click on any link that link is delivered to the client by the way.

10:51.880 --> 10:52.370
So.

10:52.420 --> 10:52.960
OK.

10:53.500 --> 11:03.480
So I modified this site here and so you know let's see let's replay this page and here you can see this

11:03.480 --> 11:05.030
is the change.

11:05.280 --> 11:06.980
OK these changes are called here.

11:07.200 --> 11:08.090
OK.

11:08.570 --> 11:08.820
OK.

11:08.820 --> 11:13.710
In this way and which side looks OK you can do your own website.

11:13.770 --> 11:19.320
The main file of any web site is named as in next door this day.

11:19.670 --> 11:20.020
OK.

11:20.130 --> 11:21.370
So you were there.

11:21.420 --> 11:25.500
So it should present inside this directory as index not a statement.

11:25.680 --> 11:29.630
And even then what the user types the IP address.

11:29.730 --> 11:30.210
OK.

11:30.360 --> 11:35.100
Then he will find your web page on his machine.

11:35.250 --> 11:35.670
OK.

11:35.820 --> 11:39.090
Because our site is present on our local network.

11:39.090 --> 11:44.750
That's why it is you can call it as intranet and it is available publicly.

11:44.910 --> 11:47.920
Then you can call it as Internet.

11:47.940 --> 11:48.400
OK.

11:48.450 --> 11:52.230
So in this way our votes are Valks.

11:52.350 --> 11:52.910
OK.

11:53.160 --> 11:57.950
In the next lesson I want to show you how to secure your vote.

11:58.000 --> 11:59.020
So the.
