Linux

centos7上安装phpMyAdmin

by admin, 2020-03-10


1.安装EPEL库
yum -y install epel-release

2.安装phpMyAdmin
yum -y install phpmyadmin

3.修改文件/etc/httpd/conf.d/phpMyAdmin.conf,更改权限设置(如下图,注释掉原来的几行,并添加Require all granted 和Allow from all 这两句)
nano /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
   </IfModule>
</Directory>

4.重启Apache
systemctl restart httpd.service

无标签
2020 © - home