• 游啊游
  • 信仰
  • 原点
  • 清明
  • 关不上的窗
  • 雨一直下-古筝
  • 你的样子
  • Sofía
  • Suddenly
  • Traveling Light
  • 城南花已开
  • 简单与秋夜
  • 最美的期待
Oo笑容太甜oO/

centos7上安装phpMyAdmin


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

暂无评论