WEB SOLUTION WITH WORDPRESS
You are progressing in practicing to implement web solutions using different technologies. As a DevOps engineer you will most probably encounter PHP-based solutions since, even in 2021, it is the dominant web programming language used by more websites than any other programming language.
In this project you will be tasked to prepare storage infrastructure on two Linux servers and implement a basic web solution using WordPress. WordPress is a free and open-source content management system written in PHP and paired with MySQL or MariaDB as its backend Relational Database Management System (RDBMS).
Project 6 consists of two parts:
Configure storage subsystem for Web and Database servers based on Linux OS. The focus of this part is to give you practical experience of working with disks, partitions and volumes in Linux.
Install WordPress and connect it to a remote MySQL database server. This part of the project will solidify your skills of deploying Web and DB tiers of Web solution.
Step 1 — Prepare a Web Server Launch an EC2 instance that will serve as "Web Server". Create 3 volumes in the same AZ as your Web Server EC2, each of 10 GiB.
Using lsblk utility to view the newly configured partition on each of the 3 disks.
Verify that your Physical volume has been created successfully by running sudo pvs
Verify that your VG has been created successfully by running sudo vgs
Verify that your Logical Volume has been created successfully by running sudo lvs
Verifying the entire setup
UPDATE THE /ETC/FSTAB
FILE
The UUID of the device will be used to update the /etc/fstab file; Test the configuration and reload the daemon
Verify your setup by running df -h
the database as been mounted
To install PHP and it’s depemdencies
Configure DB to work with WordPress and Configure WordPress to connect to remote database