Ref.link
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-a-centos-6-4-vps-
Introduction
Many websites and applications require databases to store and manage large sets of information. MySQL and MariaDB are popular database management systems because of their flexibility, power, and ubiquity.For many users, managing databases is difficult from the command line. For those who prefer to use a web interface,
phpMyAdmin
is a great alternative to command driven management.In this guide, we will cover how to install and configure phpMyAdmin on a CentOS 6.4 VPS. The procedure should be fairly similar for other versions.
Step One –– Add EPEL Repositories
The phpMyAdmin package is not included in the CentOS default repositories, but it is available in the Fedora Projects EPEL (Extra Packages for Enterprise Linux) repositories.We can add the repository to our
yum
source list by downloading a configuration file from the repository itself. Run the following command:cd ~
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Note that even though this file is coming from the 64 bit repository,
it is architecture agnostic, meaning it will work for either 32 bit or
64 bit installations.This will download the package into our home directory. Install it by typing:
sudo rpm -ivh epel-release*
Your installation now is aware of the EPEL repositories and will query it for packages.We can check this by typing:
yum repolist
. . .
repo id repo name status
base CentOS-6 - Base 6381
epel Extra Packages for Enterprise Linux 6 - x86_64 9788
extras CentOS-6 - Extras 13
updates CentOS-6 - Updates 1336
repolist: 17518
As you can see, the EPEL repo is present.Since the repository is entered in the system now, you can remove the repository configuration package by typing:
rm epel-release*
Step Two –– Download and Configure MySQL
To use phpMyAdmin, you need database software to administer. We will install MySQL and preform some initial configuration from the command line.To install it, simply type: