Note: Running phpmyadmin in a non secure http connection is not recommended as username and password are not encrypted.
- Install the required dependencies.
$ sudo yum install php70-mbstring.x86_64 php70-zip.x86_64 -y
- Restart Apache.
$ sudo service httpd restart
- 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. To download the file directly to your instance, copy the link and paste it into a wget command, as in this example:
$ wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz
- Create a phpMyAdmin folder and extract the package into it using 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
- (Optional) If the MySQL server is not running, start it now.
$ sudo service mysqld start
- In a web browser, type the URL of your phpMyAdmin installation. This URL is the public DNS address (or the public IP address) of your instance followed by a forward slash and the name of your installation directory. For example:
http://my.public.dns.amazonaws.com/phpMyAdmin
Tutorial: Install a LAMP Web Server with the Amazon Linux AMI