先获取源码
https://www.phpmyadmin.net/files/4.7.6/
下面以phpMyAdmin的-4.7.6-ALL-languages.tar.gz为例
(1)解压文件
解压phpMyAdmin的-4.7.6-ALL-languages.tar.gz 到apache的DocumentRoot目录(/var/www/html)中
[root@centos7 ~]# tar -xf phpMyAdmin的-4.7.6-ALL-languages.tar.gz -C /var/www/html/
(2)复制phpmyadmin的简单配置文件config.sample.inc.php,作为默认配置文件
[root@centos7 ~]# cp –a /var/www/html/phpMyAdmin的-4.7.6-ALL-languages/config.sample.inc.php /var/www/html/phpMyAdmin的-4.7.6-ALL-languages/config.inc.php
(3)编辑配置文件config.inc.php
[root@centos7 ~]# vim /var/www/html/phpMyAdmin的-4.7.6-ALL-languages/config.inc.php
//防止报错下面随便写字符
$cfg['blowfish_secret'] = '随便字符'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
(4)创建软链接
[root@centos7 ~]# ln -s /var/www/html/phpMyAdmin的-4.7.6-ALL-languages/ /var/www/html/phpMyAdmin
(5)通过 ip 访问
http://47.94.11.195/phpmyadmin