Web Stack Implementation (Linux AWS EC2, Apache, MySQL, PHP)
- EC2 Instance
- LAMP (Linux, Apacha, MySQL, PHP)
Step 0 - Preparing prerequisites
- AWS account setup and Provisioning an Ubuntu Server
- Key Pair
- Connecting to your Ec2 Instance
Step 1 - Installing apache and Updating the Firewall
- Install Apache
Step 2 - Installing MySQL and Updating the Firewall
- Install MySQL
- Secure Instalation
Step 3 - Creating a Virtual Host for your Website Using Apache
- Install MySQL
- Secure Instalation
Install Apache, mysql, PHP
#!/bin/bash
#update a list of packages in package manager
sudo apt update
#run apache2 package installation
sudo apt install -y apache2
sudo systemctl start apache2
sudo systemctl enable apache2
#run mysql-server package installation
sudo apt install mysql-server -y
# Start the interactive script by running
sudo mysql_secure_installation