centos7安装phpmyadmin

2017-11-29  本文已影响0人  萧格
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/

ps:默认phpMyAdmin的文件路径在 /usr/share/phpMyAdmin,可以为phpMyAdmin配置指定的域名。

上一篇 下一篇

猜你喜欢

热点阅读