Digital Marketing

How To Install phpMyAdmin on CentOS Server

You may need to do the following first:

How To Install PHP On CentOS 7

The EPEL repository can be made available to your server by installing a special package called epel-release. This will reconfigure your repository list and give you access to the EPEL packages.

To install, just type:

sudo yum install epel-release

Now that the EPEL repo is configured, you can install the phpMyAdmin package using the yum packaging system by typing:

sudo yum install phpmyadmin

sudo vi /etc/httpd/conf.d/phpMyAdmin.conf

Change any lines that read Require ip or Allow from to refer to your connection's IP address.

#  sed 's/' < /etc/httpd/conf.d/phpMyAdmin.conf > /etc/httpd/conf.d/

You may also need to change mysql server ip:

sudo vi /etc/phpMyAdmin/

sudo systemctl restart httpd.service


If you encounter:

Can't login to remote MariaDB server

sudo getsebool -a | grep httpd
to check whether you can connect to db from http.

sudo setsebool -P httpd_can_network_connect_db on


Popular posts from this blog

Make online money from the Internet