SYS 360 Lab 5 2: LAMP Stack in AWS Part 2 - JadenGil/Jaden-Tech-Journal GitHub Wiki
This lab is a continuation of the following:
Complete that lab if not done so already!
Securing the Database Server:
We will first want to start the Mariadb server by running sudo systemctl start mariadb
.
Then we will run the secure installation with sudo mysql_secure_installation
and say yes to every question. MAKE SURE THE PASSWORD IS SECURE:
Then we will enable mariadb with sudo systemctl enable mariadb
Deliverable 1:
Installing phpMyAdmin:
First, we want to install php-mbstring:
Then restart httpd with sudo systemctl restart httpd
Then restart php-fpm with sudo systemctl restart php-fpm
Then we will navigate to /var/www/html
and in here we will download the latest version of phpMyAdmin:
Then we will make a directory for phpMyAdmin and un-tar the phpMyAdmin file we downloaded into the new directory using mkdir phpMyAdmin && tar -xvzf phpMyAdmin-latest-all-languages.tar.gz -C phpMyAdmin --strip-components 1
If all was done correctly it should all look like this:
Then we will remove the tar file with rm phpMyAdmin-latest-all-languages.tar.gz
Then we should double check that MariaDB is still running:
Now if we navigate to public-dns/phpMyAdmin
we will be presented with a login page and we can log in with the root user we made earlier
Deliverable 2: