How to Host a Website on AWS EC2 Instance

Amazon Web Services offers cloud web hosting solutions that provide businesses, non-profits, and governmental organizations with low-cost ways to deliver their websites and web applications. Whether you’re looking for a marketing, rich-media, or ecommerce website, AWS offers a wide-range of website hosting options, and we’ll help you select the one that is right for you. Step 1-  Firstly we need to upload our Project folder it is included all coding file such as html, css and images. Go to your S3 drive and upload web folder. Step 2- Go to Home page and click EC2 services, and Launch Instance… Step 3- Create Instance for web-server
Step 4- Go to AWS market place and select OS version in this blog I will show with Cent OS. Select OS version and Next Continue Select Free Tier and lunch and review Step 5- Create Key Pair for your Instance Download key pair save on your PC. After that Lunch your instance. Step 6- Connect your instance with Putty. I’ll show you on next blog how to connect your AWS Instance with Putty. Step 7- Upload your web folder on Instance Connecting your instance with Putty type command on terminal —> “yum install -y” —> “yum install httpd -y” —> “cd /var/www/html” After that Copy the our web folder Zip file form S3 —> “wget your object url —> “unzip your file name” —> “mv your file name/* . ” —> “service httpd start” Thank for reading…..

Leave a Reply

Your email address will not be published.