Lab 5.2: LAMP Stack in AWS Part 2
Secure the database server:
Start the MariaDB server.
Run mysql_secure_installation
.
- 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.
- Type
Y
to remove the anonymous user accounts. - Type
Y
to disable the remote root login. - Type
Y
to remove the test database. - Type
Y
to reload the privilege tables and save your changes.
Set the MariaDB server to start at every boot, type the following command.
Submit: Screenshot showing the mariadb status as active
Install phpMyAdmin:
Install the required dependencies.
Restart Apache.
Restart php-fpm
.
Navigate to the Apache document root at /var/www/html
.
Select a source package for the latest phpMyAdmin release from https://www.phpmyadmin.net/downloads Links to an external site.. To download the file directly to your instance, copy the link and paste it into a wget command, as in this example:
Create a phpMyAdmin
folder and extract the package into it with the following command.
Delete the phpMyAdmin-latest-all-languages.tar.gz
tarball.
SUBMIT: Screenshot showing successful PHP MyAdmin Login