How to host a dynamic website on AWS EC2 instance || How to deploy a php website on AWS EC2 instance

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello friends welcome to my channel in today's video i will show you how to host a dynamic website on aws using ec2 instance in pre previous video i have shown how to host a static website on aws using s3 services if you haven't watched that you can go check in the description so let's start first sign into your account as root user then go to services click on ec2 click on instances running first we need to create an instance so to create an instance click on launch instance now choose an ami provided by aws or you can choose one of your own amis ami is a template that contains the software configuration required to launch your instance now click on free tire i am choosing microsoft windows server next click on select now in in instance type there is nothing to do as much so click on next directly in configure instance click on next in add storage click on next and in add tags click on next as usual in configure security group click on add rule to add http and https and enter your security group name and the same group name should be entered in the description also after that click on review and launch and in review click on launch now we have to create a new key pair for our instance so for that click on create new key pair and then write the name of the key pair and then download it and keep it safely now click on launch instances your instance is launching now now scroll down and click on view instances now our instance is created successfully wait till it comes two by two checks in the status refresh the page now you can see two by two checks in the status check now select the instance and click on connect go to rdp client now click on download remote desktop file if you don't have it in your pc now click on get password and browse your key pair which which you have already downloaded now scroll down click on decrypt password now go to start open remote desktop connection copy the public dns and paste it here click on connect now copy the username paste it here now copy the password and paste it here click on ok click on yes now we have successfully logged into our instance before continuing go to public firewall and for that go to start and click on windows defender then go to firewall settings scroll down click on advanced settings then click on firewall properties go to public profile make these changes as i am showing in the video and click on allow in ba inbound conduct connections click on apply and then click on ok don't forget to off the public firewall inbound connections before terminating the instance i am going to host a dynamic website which i made in php so for that first we have to download the xam server open a new tab uncheck this click on close type sam download click on download xampp next we can see three different versions there click on any one of them to move forward after you have downloaded the application successfully double click on the application to install it click next next and then at last click on finish i have kept my project files ready in desktop so minimize it copy the project files and paste it in xampp folder inside htdocs rename the dashboard as one and project as dashboard that is my project is on travel and tourism so i renamed it as dashboard rename the two as i am showed above now open xampp server start apache and mysql now click on admin click on new now write the name of your sql file click on create now go to import and browse your sql file and then click on go now open a new tab type localhost slash dashboard and then enter the website is deployed successfully my website is on travel and tourism now let's see if the information gets stored in the database for that click on register fill in your details now click on register now let's check if the information is stored click on users refresh this page yes now you can see that my information is stored in the database now open a new tab type the public ip address that is shown on the right side website is deployed successfully now copy the ip address minimize the cloud machine open google chrome and paste it website is hosted successfully login again click on book package fill the tour and query details click on submit now let's see if the information is stored in database or not yes now it is successfully stored in database so this is how dynamic website is hosted in aws aws ec2 instance hope you like my video please don't forget to like share and subscribe my video so we will meet in the next video thank you for watching my video [Music] [Music] you
Info
Channel: TECHMAC SOLUTIONS
Views: 14,453
Rating: undefined out of 5
Keywords: How to host a dynamic website on AWS EC2 instance, how to deploy a php website on AWS EC2 instance, How to create an instance, how to launch an instance, how to host a dynamic website for free, how to host a dynamic websiteon aws ec2 instance in 2021, #aws EC2 instance, hosting PHP website on AWS EC2 instance, how to host a php website for free, how to host a dynamic website for free in 2021, how to deploy a website in ec2 instance, how to host a website easily, TECHMAC SOLUTIONS
Id: QtdbGIvLJKo
Channel Id: undefined
Length: 19min 55sec (1195 seconds)
Published: Tue Mar 02 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.