美文网首页
centos7安装phpmyadmin

centos7安装phpmyadmin

作者: 萧格 | 来源:发表于2017-11-29 09:23 被阅读0次
  • 执行命令 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/

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

相关文章

网友评论

      本文标题:centos7安装phpmyadmin

      本文链接:https://www.haomeiwen.com/subject/bmzybxtx.html