- 执行命令
sudo yum install phpmyadmin
有时候会安装不成功,提示没有可用软件包,则需要安装Remi源
sudo yum install epel-release -y
sudo rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
安装成功后修改 sudo vim /etc/httpd/conf.d/phpMyAdmin.conf
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
# Require ip 127.0.0.1
# Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
#Allow from 127.0.0.1
#Allow from ::1
Allow from All granted
</IfModule>
重启Apache,访问http://ip地址/phpMyAdmin/
网友评论