Champlain College Classes
HomeTech JournalsPersonal ProjectsSysadmin Wiki
SYS-360: Cloud Admin
SYS-360: Cloud Admin
  • SYS-360: Cloud Admin
  • Breakdown
    • Course Overview
  • Labs
    • Lab 1-1: Accessing the AWS Sandbox
    • Lab 1-2: AWS Learner-Lab Set-Up
    • Lab 2-1: Getting Started with Amazon EC2
    • Lab 2-2: EC2 Web Server
    • Lab 2-3: IAM Console
    • Lab 3-1: AWS with CLI
    • Lab 3-2: AWS EC2 with CLI - Lab 2
    • Lab 4-1: S3 Server-side Encryption
    • Lab 4-2: S3 SSE - Client Provided Keys
    • Lab 4-3: Working with EBS
    • Lab 5-1: LAMP Stack in AWS - Part 1
    • Lab 5-2: LAMP Stack in AWS Part 2
    • Lab 5-3: Setting up WordPress on LAMP
    • Assignment 5-1 Protecting Data in Your Application
Powered by GitBook
On this page
  • Secure the database server:
  • Install phpMyAdmin:
  1. Labs

Lab 5-2: LAMP Stack in AWS Part 2

PreviousLab 5-1: LAMP Stack in AWS - Part 1NextLab 5-3: Setting up WordPress on LAMP

Last updated 1 year ago

Secure the database server:

Start the MariaDB server.

sudo systemctl start mariadb

Run mysql_secure_installation.

sudo mysql_secure_installation
  1. When prompted, type a password for the root account.

    • Type the current root password. By default, the root account does not have a password set. Press Enter.

    • Type Y to set a password, and type a secure password twice. . Make sure to store this password in a safe place.

  2. Type Y to remove the anonymous user accounts.

  3. Type Y to disable the remote root login.

  4. Type Y to remove the test database.

  5. Type Y to reload the privilege tables and save your changes.

Set the MariaDB server to start at every boot, type the following command.

sudo systemctl enable mariadb

Submit: Screenshot showing the mariadb status as active

Install phpMyAdmin:

Install the required dependencies.

sudo yum install php-mbstring -y

Restart Apache.

sudo systemctl restart httpd

Restart php-fpm.

sudo systemctl restart php-fpm

Navigate to the Apache document root at /var/www/html.

cd /var/www/html
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz

Create a phpMyAdmin folder and extract the package into it with the following command.

mkdir phpMyAdmin && tar -xvzf phpMyAdmin-latest-all-languages.tar.gz -C phpMyAdmin --strip-components 1

Delete the phpMyAdmin-latest-all-languages.tar.gz tarball.

rm phpMyAdmin-latest-all-languages.tar.gz

SUBMIT: Screenshot showing successful PHP MyAdmin Login

Select a source package for the latest phpMyAdmin release from . To download the file directly to your instance, copy the link and paste it into a wget command, as in this example:

https://www.phpmyadmin.net/downloads
Links to an external site.