Giter Club home page Giter Club logo

html-aws-ec2-'s Introduction

Project Deployment Documentation

Purpose

This is a documentation of how I deployed a web page using AWS EC2 with Apache 2 on Ubuntu. It aims to set up a web server environment and deploy my HTML, CSS, and image files, making my web page accessible via a public IP address.

Prerequisites

  • An AWS account with the necessary permissions to create and manage EC2 instances.
  • Basic knowledge of using Git for version control.
  • Familiarity with SSH for connecting to remote servers.
  • A GitHub repository set up to store my project files.

Steps

  1. Create GitHub Repository

    • I create a new repository on GitHub to store my project files.
      $ git init
      $ git add .
      $ git commit -m "Initial commit"
      $ git remote add origin <repository_url>
      $ git push -u origin main
  2. AWS Setup

    • I create an AWS account if not already done.
    • I configure an IAM user with appropriate permissions for EC2 instance management.
  3. Launch EC2 Instance

    • I launch an Ubuntu EC2 instance with desired configurations (e.g., instance type, security groups).
      $ aws ec2 run-instances --image-id <image_id> --instance-type <instance_type> --key-name <key_name> --security-group-ids <security_group_ids> --subnet-id <subnet_id>
  4. SSH into EC2 Instance

    • I connect to my EC2 instance using SSH.
      $ ssh -i <key.pem> ubuntu@<public_ip>
  5. Install Apache 2

    • I install Apache 2 web server on the EC2 instance.
      $ sudo apt update
      $ sudo apt install apache2
  6. Clone GitHub Repository

    • I clone my GitHub repository into the EC2 instance.
      $ git clone <repository_url>
  7. Deploy Web Files

    • I move my project files (HTML, CSS, images, etc.) to the Apache web directory.
      $ sudo mv /path/to/my/project/* /var/www/html/
  8. Configure Apache 2

    • I configure Apache to serve my web page correctly.
      • If necessary, I edit the Apache configuration files (/etc/apache2/sites-available/000-default.conf) to set up virtual hosts or customize server settings.
      • I restart Apache to apply changes.
        $ sudo systemctl restart apache2
  9. View the Deployed Site

    • I access my web page through the public IP address of my EC2 instance in a web browser.
      http://<public_ip>
      

Conclusion

My web page is now deployed and accessible via the configured EC2 instance and Apache web server.

html-aws-ec2-'s People

Contributors

sajerestan1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.