How to Install and Configure phpMyAdmin on CentOS

Add the EPEL Repository

phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository:

yum install epel-release

Install phpMyAdmin

First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.

yum -y update

Then it’s a matter of just running one command for installation via apt-get:

yum -y install phpmyadmin

You can now access PHPMyAdmin at, http://your_IP_address/phpmyadmin or http://your_IP_address/phpMyAdmin