phpMyAdmin is a web-based database management tool that you can use to view and edit MySQL databases on your EC2 instances. Follow the steps below to install and configure phpMyAdmin on your Amazon Linux instance.
Install the required dependency
sudo dnf install php-mbstring php-xml -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
Download phpMyAdmin
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz

Create a folder phpMyAdmin and extract it with the following command.
mkdir phpMyAdmin && tar -xvzf phpMyAdmin-latest-all-languages.tar.gz -C phpMyAdmin --strip-components 1

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

If the MySQL server is not running, start it
sudo systemctl start mariadb

In the EC2 interface
Paste Public IPv4 DNS into the browser with the following URL:
http://my.public.dns.amazonaws.com/phpMyAdmin

The root account and password have been configured in the database server security configuration step




CREATE TABLE `awsuser`.`user` ( `id` INT NOT NULL AUTO_INCREMENT , `first_name` VARCHAR(45) NOT NULL , `last_name` VARCHAR(45) NOT NULL , `email` VARCHAR(45) NOT NULL , `phone ` VARCHAR(45) NOT NULL , `comments` TEXT NOT NULL , `status` VARCHAR(10) NOT NULL DEFAULT 'active' , PRIMARY KEY (`id`)) ENGINE = InnoDB;

Information about the database must be accurate and stored to perform the configuration for the application
