How to Deploy a Multi-Tier PHP Website Using the AWS EC2 & MySQL RDS
Step 1: Create an EC2 Server and Install the Apache on it
Step 2: Deploy the PHP website on the EC2 Server
Step 3: Create a MySQL Database & Set Up Connection Over EC2 Server with Proper Tesing
Step 4: Create the Launch Template for Auto Scaling Groups
Step 5: Create an Auto Scaling Group for this PHP website
Step 6: Create a Target Group for Load Balancer
Step 7: Create a Load Balancer for Balancing the Traffic
Step 8: Attach the Load Balancer to Auto Scaling Group
Step 9: Route Traffic from Load Balancer to A Specific Domain (Optional)
Step 10: Test the Load Balancer Will Working Fine or Not
Step 11: Route Traffic from Load Balancer to A Specific Domain (Optional)
Step 12: Test the Auto Scaling is Working Properly or Not
Step 13: Test the Database is Working Properly or Not
For the detailed solution, checkout this link: https://medium.com/devops-guides/aws-capstone-project-1-how-to-deploy-a-multi-tier-php-website-using-the-aws-ec2-mysql-rds-e8e837f56bab