Google Cloud Platform Website Hosting | How To Host Website On Google Cloud | Simplilearn

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome to this session on Google cloud platform website hosting and let's understand what Google cloud platform offers when it comes to your web hosting requirements here we will learn about goal cloud web hosting some basics of cloud computing web hosting service providers what is GCP and why go for it different types of web hosting which are possible a use case such as lush and a quick hands-on on using GCP for web hosting when you talk about cloud web hosting google cloud has the feature of hosting a secure and reliable web sites easily it ensures customers and sites protection the web site is a is hosted on a fast and reliable network you can do more work for less price with Google cloud now when we talk about Google cloud it is always good to know some basics over cloud computing now when we talk about cloud computing cloud computing is basically using resources which are provided by your cloud service provider such as Google cloud and cloud computing basically means using hardware and software components to deliver a service on a network now here users can access files applications from any device that can access Internet so when we talk about cloud computing this is basically using services which are hosted on the infrastructure managed by cloud provider when we talk about resources which can be used that may include big data services storage options you are computing options networking options and various other services which a cloud provider offers cloud computing has various different service models such as you have platform-as-a-service software as a service infrastructure as a service also these days we talk about containers as a service and these are your different computing service models which are being offered by cloud service providers which allow you form automatic integration with your existing environment or if you would want to benefit from modernization by using the cloud providers infrastructure you have different services which are offered some of them are for auto software integration or migration backing up and restoring data scaling your storage capacity that is going for an unlimited storage capacity and using a resource provided by cloud service provider benefiting from reliability cost efficiency which is offered by a cloud provider in this case we are talking about Google cloud when you talk about web hosting service providers there are various web hosting service providers you have AWS you have Squarespace IBM cloud GoDaddy Bluehost and Google cloud so what is GCP and why go for it when you talk about GCP or as we call it as Google cloud platform it is set of cloud computing services provided by Google that runs on the same infrastructure that Google uses for it end-user products like YouTube Gmail and much more when you talk about GCP there are various reasons why anyone would choose it for their use cases now let's look at some reasons when you talk about pricing GCP has better pricing compared to its competitors depending on the services which you would use whether that would be infrastructure as a service such as using compute engine instances and running your applications on them or might be a managed service such as data proc or BigTable or your bigquery where you can have your Hadoop clusters running or store huge amount of data or even build your data warehouse wherein you can store structured data so there are different services with GCP offers and pricing has been a better option in case of Google in comparison to other competitors when you talk about speed and performance it's very fast and increases the performance of your project if you use different services offered by Google when you talk about life migration of apps this is one of the features which organizations usually like which none of other competitors are offering when it comes to life migration of apps so there are specific features for example when you talk about computer engine there is a feature stating live migration where in your resources or your instances which are running applications would be migrated during say maintenance from one underlying host to another underlying host without affecting your applications performance and you can benefit from that when you talk about big data Google cloud has various offerings in big data space and that's one of the advantages of GCP in comparison to other competitors you have different services for your big data needs such as pub/sub for published subscribing messaging system or going for data proc which basically allows you to spin up your Hadoop and spark clusters to run your different jobs and so on so when we talk about features of Google cloud platform it offers high productivity because you are using the resources which are based on the same infrastructure which Google uses for its own different use cases you can work from anywhere provided you have internet connection and you can connect to the cloud platform and use different services offered via web you can quickly collaborate with different teams or different colleagues working on different projects which might be sharing or using different GCB resources you are benefiting from hi security and different encryption and security mechanisms with GCP offers now there are fewer sources or you could say data which is stored or vulnerable devices there is high reliability flexibility or scalability which GCP offers and the cost-effectiveness really makes it as a good choice when you would want to benefit from infrastructure modernization and using a cloud platform solution for your use case and when you talk about different types of web hosting Google cloud offers three types of web hosting you have WordPress now it is a free and open source content management system you might have used in past or have heard about WordPress where a lot of web sites are being created it is a popular web publishing platform to easily set up blogs and websites and thus used by organizations or even individual users for having their blogs or running their websites or promoting their products you have lamp which stands for Linux Apache MySQL and PHP and lamp stack consists of Linux Apache HTTP server MySQL and PHP and is used to host websites and web applications you also have your option of building your own website so you can develop website or web application with your own code directly on compute engine now let's look at a use case and understand what happened here when we talk about Lush so les was founded in 1995 it's you might have seen this brand somewhere in the streets it is a global cosmetics retailer headquartered in UK it sells a diverse range of fresh handmade products les had become a global brand with over 930 stores in 49 countries so challenges which were faced here was traffic on Boxing Day caused website crash for almost 18 hours and this is something which had a devastating effect on their business the previous platform had no scalability option what was the solution the movement of website during the peak time was easy due to flexibility of GCP platform with rapid VM deployment on Google compute engine the environments were monitored and destroyed in minutes so the team could test and deploy at speed by using Google Cloud SQL plus took complete control of its infrastructure and optimize its systems for effective scaling overall the platform resulted in lower cost that led to a bright future for Lush Cosmetics now what was the result of all this the availability during peak loads was improved because of Google compute engines auto scaling feature the infrastructure hosting costs were reduced by 40% streamline data center usage from five to three with Google's high quality private network really benefited lush and it provided a flexible architecture and scalability for future business growth now what we have seen here is that your Google cloud and its web hosting basically offers users to run their websites or use a web hosting solution that can benefit in more than one way the simplest approach could be seen is by clicking and setting up a VM instance by going to your console for example if we go in to the Google cloud platform clicking on console and here the easiest way I could test it is by going to my compute engine VM instances and here I can spin up an instance I can click on create now in my previous sessions I have also explained about how you could create a template and run an instance from that we can also click on new VM instance let's call it new instance I will choose a region for example Frankfurt I will let it be general purpose machines let this machine be one virtual CPU core and 3.75 gigabyte RAM if I'm looking for a heavier website which might have more users logging in and so on then I can choose a higher configuration machine here we have the option to choose our distribution so for example I can choose Ubuntu and then I can choose a distribution version so it let it be 16 point o4 we can choose the disk size to be 20 gigabyte and we can use SSDs or STDs so as of now the standard persistent disk that is STD and that should be enough let's click on select here I will say allow default access I would say allow HTTP and HTTPS so that if I have a website content hosted on this machine I can access it over HTTP now here you have management options for your instance you have security option which basically allows you to provide a public key if you are interested in using an external SSH client to connect now I have used footage N and I have already created a private key which is here I have also converted that as a PEM file and any time if I would want to use this key all I need to do is click on put each n where I had earlier created this PPK file now I can just well load and I can choose the key which I have here and I can give the pass phase click on ok and that shows you the public key let's copy the public key from here let's go into our instance and I can give this here that resolves the name so I have the private key saved on my machine and public key which will be pushed into the machine I can click on create and that should create my instance to which you can connect using SSH from the console itself or using a external clients such as putty which will then need the public IP of this instance the PPK file what we have and you can connect to this instance what I can also do is I can just do a simple SSH from here and that will basically allow me to connect to the instance what we also need to remember is each instance what we create in compute is also having some default firewall rules now I have connected to my instance I can click on sudo su I can log in as root and here if I would want I can install a particular service so let's say Apache let's say apt-get install and then I can say Apache - or STD PD that is basically to host your web application so I'm installing the service and here I can check if the service is running by doing a service HTTP D status or I can say service Apache - status it says it is already running that means the Apache web server page will be accessible from HTTP provided my firewall rules allow that now before we look into this we can also for our instance look at the firewall rules so here you have network details now since we created an instance by default Google has created some firewall rules which allow default HTTP HTTPS ICMP your default internal access RDP an SSH access and here it says these ingress rules which allow incoming traffic are allowed from anywhere we can customize that at specific IP addresses we can also look at egress which is basically outgoing traffic and this is again saying my machine can connect to the external world in different ways using different protocols so you can customize these firewall rules as of now I'm going to let it be default now be connected to our instance from the browser and we were basically checking how you can use this browser by clicking on this now what I can also do is here I am logged into the instance my Apache server is running so the best way to check if the Apache web server is accessible via HTTP all I need is my public IP so let's copy this let's go here and I will say HTTP slash slash just give your public IP and that shows your apache - web server page that means the apache service has already been run now here it tells if you would want to host a particular page what you will have to do is as it says here it is based on equivalent page on Debian from which we went to Apache packaging is derived if you can read this page it means Apache HTTP server is installed and this site is working properly now you can replace this file located at bar www HTML index dot HTML before continuing to operate your HTTP server so this is where you can change the particular page and you will be able to post your web site on this particular ec2 instance what we can do is we can check this so we can go into the browser and we can look in VAR www and that has an ST ml folder look into this and as of now you have a index dot HTML and that basically is the page what we are seeing now I can click on this one and I can see I have a small HTML page which is basically showing me what we are seeing on our web server what I can also do is for now I can test it out and I can put in a different HTML page and see how that works so we had basically the page here in VAR www and then we had the HTML folder and in HTML folder what I had was this index file so as of now I just moved it and I put it in a different location so if I look in my home hdu index dot HTML that shows me the complete HTML page what we were seeing on our web server and here it shows you what this page would display if you run it on your HTTP it says apache to window default page it shows it works it shows the content and so on so for just testing I move this page out from this location and what I did was I added different page here so that page if you look in HTML and then look in my page dot HTML section I've just added some basic details of creating HTML I'm saying body I'm using Maki and then I'm closing this with HTML tag now this is a simple HTML page which I created and now what I did was once I've done this I basically did a service Apache restart so once you do that it will take up your new page and once you have done that now you can access that by going to your stdp given your details and then basically give your public IP which we can get from here and just paste it here now hit on this so that shows me there is a my page dot HTML I can click on this and that basically shows the symbol page which I created so as of now this is my web page which I have created and this is hosted on my compute instance now obviously we can create a more complex website backed up by a database use PHP use MySQL to store the data and then host your website on a Google cloud platform service such as compute where your actual code is running so we can learn about your web hosting on compute instances in further sessions thank you keep learning hi there if you like this video subscribe to the simple learn YouTube channel and click here to watch similar videos de nerd up and get certified click here
Info
Channel: Simplilearn
Views: 78,200
Rating: undefined out of 5
Keywords: google cloud platform website hosting, google cloud hosting, google cloud web hosting, how to host website on google cloud, host website on google cloud, host website on google cloud platform, host website on google cloud platform 2020, gcp website hosting, gcp web hosting, website hosting on google cloud, website hosting explained, website hosting tutorial, google cloud platform tutorial, google cloud platform tutorial for beginners, simplilearn google cloud platform, simplilearn
Id: YHq8SWAkzG8
Channel Id: undefined
Length: 19min 37sec (1177 seconds)
Published: Tue May 05 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.