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 127.0.0.1 or Allow from 127.0.0.1 to refer to your connection's IP address.

#  sed 's/127.0.0.1/127.0.0.1 192.168.2.88/g' < /etc/httpd/conf.d/phpMyAdmin.conf > /etc/httpd/conf.d/phpMyAdmin.conf.new

You may also need to change mysql server ip:

sudo vi /etc/phpMyAdmin/config.inc.php

sudo systemctl restart httpd.service

visit:
your-server/phpMyAdmin/index.php

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

Comments

Popular posts from this blog

Make online money from the Internet