By. 201735839 서장원

Instance types in Amazon EC2(It provides numerous additional features to help you deploy, manage and scale your applications)

Untitled


Steps for making my own Webserver in AWS

  1. Signup for AWS

    https://aws.amazon.com/ko/

  2. Make an instance

    Click Start Instance

    Click Start Instance

    AMI : Amazon Linux

    AMI : Amazon Linux

    Instance : t2.micro (AWS free tier)

    Instance : t2.micro (AWS free tier)

    Untitled

    Since the EC2 instance needs to be accessed through the terminal, SSH port 22 is set as the default value.

    Untitled

    The private key file downloaded at this time cannot be downloaded again. Be sure to store it in a safe, secure location.

    Untitled

    You can confirm that the instance was created successfully!

    Untitled

    To make access to port 80 , we should create for HTTP

    0.0.0.0/0 means Anyone can access to this server.

  3. Webserver Install

    Now, I will connect to the newly created instance via SSH and install the Apache web server. Copy the command displayed in the SSH client tab as shown below, then open a CMD window in administrator mode in Windows.

    Untitled

    Download Putty, Putty Gen

    https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

    We should convert .pem file to .ppk file for ssh connect

    1. Load the pem file from AWS

    Untitled

    1. Load the pem file

    Untitled

    1. convert it to ppk (Click “Save private Key”)

    Untitled

    4)Connect AWS using Putty

    Host name : ubuntu@ ~  (can find it in your ec2)

    Host name : ubuntu@ ~ (can find it in your ec2)

    5)Put your key(ppk file)

    Untitled

    6)Click Open and success!

    Untitled

    7)Apache server Install

    sudo apt-get install apache2
    
  4. Check the Server

    1)Type public ip to connect to apache server

    Untitled

    Untitled

    1. Upload a folder Using FileZilla

    https://filezilla-project.org/download.php?platform=win64

    add your key file in Settings - SFTP

    Untitled

    Click Site manager, Make a new site (Click new site)

    Untitled

    If is connected your local is in the left and the instance from AWS is in the right

    Untitled

    I will delete the index.html which is AWS apache default page and upload my homepage

    sudo rm /var/www/html/index.html 
    

    delete the html folder.

    Before uploading your folder you should give permission!

    sudo chmod -R 777 /var/www/html
    

    If its done , you could drag and drop Using FileZilla

    Untitled

    You can see that file is uploaded correctly!