WEBVTT FILE 1 00:00:05.650 --> 00:00:11.530 in this video you're going to set up your free web hosting so far you made 2 00:00:11.530 --> 00:00:17.230 some really good progress you understood the structure of a website and you built 3 00:00:17.230 --> 00:00:21.580 your very first website but at the moment your website is sitting on your 4 00:00:21.580 --> 00:00:26.649 computer as you are using the file protocol which is used by the browser to 5 00:00:26.649 --> 00:00:33.100 explore files inside your computer what you would like to do you'd like to place 6 00:00:33.100 --> 00:00:39.550 your file in remote server so that people can access it from anywhere in 7 00:00:39.550 --> 00:00:46.359 the world so that's why you need web hosting the result is going to be 8 00:00:46.359 --> 00:00:53.350 something like this where people just type a URL and can access your website 9 00:00:53.350 --> 00:01:01.179 from anywhere so in this example Facebook has got a file index.php which 10 00:01:01.179 --> 00:01:09.130 is placed in the root directory of the facebook domain the extension of this 11 00:01:09.130 --> 00:01:17.160 domain is dot-com and we can tell that we are using the root directory because 12 00:01:17.160 --> 00:01:22.000 straight after the fourth slash coming up to the domain we've caused our file 13 00:01:22.000 --> 00:01:32.790 index.php now we are using the HTTP protocol instead of the file protocol 14 00:01:32.790 --> 00:01:38.740 HTTP stands for hypertext Transfer Protocol and will allow the browser to 15 00:01:38.740 --> 00:01:45.940 communicate with the server and exchange plain text hyper or hypertext is 16 00:01:45.940 --> 00:01:50.980 referring to the facts that will cause hyperlinks which are referencing other 17 00:01:50.980 --> 00:01:57.970 text inside our texts now the s which you see there stands for secure which is 18 00:01:57.970 --> 00:02:02.860 just adding an extra layer to the Transfer Protocol so that when you are 19 00:02:02.860 --> 00:02:05.620 exchanging data between the browser and the server 20 00:02:05.620 --> 00:02:13.200 it cannot be intercepted by somebody so now before we set up the warehousing 21 00:02:13.200 --> 00:02:19.709 we're going to understand the difference between a domain name and web hosting to 22 00:02:19.709 --> 00:02:24.680 do that we're going to use a simple analogy from a simple real-life example 23 00:02:24.680 --> 00:02:33.030 so let's say but you'd like to buy a book from a bookstore so first you get 24 00:02:33.030 --> 00:02:38.790 the address of the bookstore and then you try to find the bookstore probably 25 00:02:38.790 --> 00:02:47.540 using a GPS so if you find it you will enter the store and look for your book 26 00:02:47.540 --> 00:02:53.430 now depending on whether the book is available or not you may take the book 27 00:02:53.430 --> 00:03:02.310 home and read it at the end so this simple example can be converted to the 28 00:03:02.310 --> 00:03:11.940 example of a domain or a URL typed by a user to access a website so what's 29 00:03:11.940 --> 00:03:19.560 happening is the URL has got a domain name and a file with the file location 30 00:03:19.560 --> 00:03:26.190 on the server when you type this on the browser the browser is going to look for 31 00:03:26.190 --> 00:03:33.030 the domain name first now the domain name is the equivalent of the address of 32 00:03:33.030 --> 00:03:40.889 the book store so every single domain on the internet has got its own address now 33 00:03:40.889 --> 00:03:47.699 if we find the address then we move to the next step which is to check the file 34 00:03:47.699 --> 00:03:52.949 location on the hosting server so you're going to check if this path has got a 35 00:03:52.949 --> 00:04:01.579 file called file dos HTML as an example if we find that file then we're going to 36 00:04:01.579 --> 00:04:07.889 download it on our computer or download a copy of it and displays on our 37 00:04:07.889 --> 00:04:18.060 computer and this is how it works so to summarize a domain is like an 38 00:04:18.060 --> 00:04:25.400 address on the internet web hosting is like a 39 00:04:25.400 --> 00:04:35.030 store or a storage area where you place all your files and you webpages so when 40 00:04:35.030 --> 00:04:43.430 somebody types a URL with your domain and a path to a file then the browser is 41 00:04:43.430 --> 00:04:48.319 going to look for the domain first and then look for the file afterwards in the 42 00:04:48.319 --> 00:04:54.710 web hosting now you may buy a domain from one 43 00:04:54.710 --> 00:04:59.569 company and web hosting from another that's absolutely fine all you need to 44 00:04:59.569 --> 00:05:03.710 do is make sure that you point your domain to the web hosting you're gonna 45 00:05:03.710 --> 00:05:07.490 be using by using the name servers and that's something we're gonna come back 46 00:05:07.490 --> 00:05:15.560 to in a bit now just a couple of comments the error that you might find 47 00:05:15.560 --> 00:05:22.449 here if the domain is not found is going to be returned by your internet provider 48 00:05:22.449 --> 00:05:28.849 because the internet provider is the one trying to find the domain or the address 49 00:05:28.849 --> 00:05:36.190 for you at this stage if the file is not found then you're gonna get an error 50 00:05:36.190 --> 00:05:42.080 from the hosting server instead alright now you are ready to set up your free 51 00:05:42.080 --> 00:05:46.039 web hosting so to do this you just need to go to the complete web hosting 52 00:05:46.039 --> 00:05:52.729 website register and then log in so I'm already research so I'm gonna log in 53 00:05:52.729 --> 00:06:05.469 using Facebook and then you just need to go to services order new services and 54 00:06:05.469 --> 00:06:09.939 here I'm gonna go for the Platinum package 55 00:06:11.919 --> 00:06:18.139 alright so now is gonna ask you to choose a domain so at this stage we 56 00:06:18.139 --> 00:06:24.159 chose a web hosting package which will help us upload files to a server and 57 00:06:24.159 --> 00:06:31.130 also manage different things like databases emails and so on now the 58 00:06:31.130 --> 00:06:36.409 domain again is going to refer to our address on the 59 00:06:36.409 --> 00:06:42.680 Internet you can either really set a new domain if you don't have one which will 60 00:06:42.680 --> 00:06:49.639 make you look really professional when sharing projects or work with clients or 61 00:06:49.639 --> 00:06:54.530 potential employers if you've got a domain already lets you bots with 62 00:06:54.530 --> 00:07:01.250 another company you can transfer the domain right if you don't want to 63 00:07:01.250 --> 00:07:06.800 transfer it you can just point the domain to the complete web hosting named 64 00:07:06.800 --> 00:07:13.159 service and we're gonna come back to your name servers in a bit now if you 65 00:07:13.159 --> 00:07:18.110 don't want to use any of those options you can just use a free subdomain from 66 00:07:18.110 --> 00:07:21.349 this website now you will need to find a subdomain 67 00:07:21.349 --> 00:07:29.090 which is available so I'm gonna try code votes off your code code at UK so let's 68 00:07:29.090 --> 00:07:35.440 see if this one is available all right it's perfect so this one is available 69 00:07:35.440 --> 00:07:44.479 now we will need to enter a promo code to turn the price to zero so you just 70 00:07:44.479 --> 00:07:50.990 need to go to the complete web hosting comm four slash students those PHP so if 71 00:07:50.990 --> 00:07:59.029 you click on URL then view public profile that's your URL so just copy it 72 00:07:59.029 --> 00:08:07.370 and paste it right there now if you click on passcode let's make 73 00:08:07.370 --> 00:08:14.990 sure you are logged in she looks into udemy you'll get your passcode so just 74 00:08:14.990 --> 00:08:23.300 copy it and PC there now click on gets poacher unless your voucher this click 75 00:08:23.300 --> 00:08:26.169 on copy voucher and validates code all right so now the 76 00:08:32.000 --> 00:08:38.870 price has turned to zero just click on checkout so just leave everything as it 77 00:08:38.870 --> 00:08:44.510 is and complete order congratulations you have just set up your free web 78 00:08:44.510 --> 00:08:52.490 hosting so now if you click on continue to claim clients area you will see your 79 00:08:52.490 --> 00:08:56.840 domain or subdomain right there so normally you will see only one service 80 00:08:56.840 --> 00:09:00.260 I've got two because I had one before placing this order 81 00:09:00.260 --> 00:09:05.120 all right so in the next video you're going to explore different features of 82 00:09:05.120 --> 00:09:10.190 your hosting package and then you're going to use a tool which will allow you 83 00:09:10.190 --> 00:09:16.210 to exchange files between your computer and the server