- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Data
Set Up a WordPress Site Using EC2 and RDS
Ready to move beyond shared hosting? This hands-on lab teaches you how to deploy a WordPress site using AWS's most powerful building blocks—EC2 for web and application hosting, and RDS for managed database services. Perfect for developers and solutions architects who want scalable, resilient infrastructure.
Lab Info
Table of Contents
-
Challenge
Objective One: Install Packages on EC2
Install required software packages (listed below) on the EC2 instance and download the WordPress installation package.
Required Packaged
- wget
- php-mysqlnd
- httpd
- php-fpm
- php-mysqli
- mariadb105-server
- php-json
- php
- php-devel
-
Challenge
Objective Two: Create RDS Database
Create a DB subnet group and provision a MariaDB RDS instance in the database subnets with proper network configuration.
-
Challenge
Objective Three: Configure Security Groups
Configure security groups to allow MySQL traffic from the EC2 instance to the RDS database and verify HTTP access is enabled for the EC2 instance.
-
Challenge
Objective Four: Create Database User
Connect to the RDS database and create a dedicated WordPress user with full privileges on the
wordpress_dbdatabase. -
Challenge
Objective Five: Configure WordPress
Create and configure the
wp-config.phpfile with database connection settings and generate WordPress security keys using the provided URL: https://api.wordpress.org/secret-key/1.1/salt/ -
Challenge
Objective Six: Install WordPress Files
Copy WordPress files to the Apache document root (
/var/www/html/) and configure Apache to enable .htaccess support for permalinks. -
Challenge
Objective Seven: Complete Installation
Start the Apache web server and complete the WordPress installation through the web interface (http://
ec2-public-ip-address)
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.