GithubHelp home page GithubHelp logo

ecogit-stage / deployphpapp-with-db-on-aws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bridgecrew-perf6/deployphpapp-with-db-on-aws

0.0 0.0 0.0 4 KB

License: MIT License

PHP 91.35% CSS 2.80% Hack 5.85%

deployphpapp-with-db-on-aws's Introduction

Deploying a PHP application connected to MySql database using AWS EC2 instance and RDS with MySQL database engine

Create a Simple Database App: Connecting to MySQL with PHP

Steps taken

  1. Create a S3 bucket to store the application source code
  2. Launch an EC2 instance, assign instance profile role and use the User Data to install the webservers and dependecies at launch of EC2
  3. #!/bin/bash sudo yum update -y sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2 sudo yum install -y httpd mariadb-server sudo systemctl start httpd sudo systemctl enable httpd sudo systemctl is-enabled httpd sudo aws s3 cp s3://dynamic-website-2-tolu --region us-east-2 /var/www/html/ --recursive
  4. Create a RDS database and use Mysql engine, ensure high availability: Multi-AZ deployment
  5. Take note of the Database Endpoint and port 3306 to be configured with the web app
  6. Create a security group and ensure its only open to the web server

AWS services used

  1. EC2 instance
  2. RDS (MySQL)
  3. Elastic Load Balancer
  4. Autoscalling Group
  5. Security Groups
  6. Amazon Machine Image

deployphpapp-with-db-on-aws's People

Contributors

ayodeletolu12 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.