Skip to main content

Project 004 Ecommerce LAMP

Updated Jan 17, 2021 ·

Overview

This project contains supporting files for the LAMP e-commerce final project.

The project walks through a manual single-node deployment before converting the flow into automation.

Files

FilePurpose
db-load-script.sqlCreates the sample product table and data.
ec2-startup.shEC2 startup helper script.

Deployment Flow

The final project builds a LAMP-style stack:

  • Install and start firewalld.
  • Install and start MariaDB.
  • Open port 3306.
  • Create the ecomdb database and user.
  • Load product data from db-load-script.sql.
  • Install Apache, PHP, and PHP MySQL packages.
  • Open port 80.
  • Clone or deploy the application code under /var/www/html.
  • Update the application database connection.