Skip to content

rushabhmahale/AWS-with-appache-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video link :- https://drive.google.com/file/d/1GztPfBwM-O1E75tdjbpJd54NFmq_DyYL/view?usp=sharing

AWS-with-appache-webserver

in this task i have hosted my website on aws ec2 instance using apache http webserver

Step Should be followed In AWS

  • zip the website folder right click on it select winzip or 7 zip to archive
  • Now go to AWS console management
  • Go to service s3 bucket create bucket with any name set as default
  • Now Make the bucket public
  • Now set VPC if VPC is configured No need to make new one You can create new one
  • Go to ec2 Machine launch Instance select machine .In my case i have chose Redhat8
    you can use any machine you want
  • Key:- Name Value:- (any name)
  • In security Group add rule:- select Http
  • Now Launch the Instance
  • Genrate new Key pair (With any name) Download the pem key

step inside putty

  • Now Download Puty https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html latest version
  • After installation Putty you will go to Putty gen key In your system . Now Load that key you have
    downloaded Save as private Key and extention must be .ppk
  • Open Putty now paste your public IP of that Instance you have Created in putty Hostname
  • Left-hand side you will se SSH go to SSH then Auth Select Auth now load your ppk key that You have saved
  • Go to Session page left-hand side select Session page now open accept session
  • Login as ec2-user (Here we dont need password because we have Downloaded SSH Key and inserted in Putty)

Step Inside Putty machine

  • Now we successfully Connected to our VM
  • sudo su (super power user root user)
  • yum update -y (update your machine package)
  • yum install httpd -y (Installing apache in the system)
  • pwd (show path)
  • cd /var/www/html (path for where your Webpage are been saved)
  • ls (view content inside linux)
  • wget (now go to s3 bucket click on zip copy object URL paste here)
  • ls
  • unzip xyz.zip (unzip that file )
  • ls
  • cd xyz (inside that folder)
  • ls
  • mv * /var/www/html (move all the content on this location)
  • cd .. (back from single directory)
  • ls (You will see yopur content of webpage here)
  • systemctl status httpd (view your service status)
  • systemctl start httpd (start your service)
  • systemctl status httpd Final step :- Go to aws instance copy your public ip and paste client side browser
    Eg:- Chrome,Edge,Safari,Firefox (any browser and any where in the world can see your website)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors