centos7安装phpmyadmin

  • 执行命令 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


     # Apache 2.4
     
      # Require ip 127.0.0.1
      # Require ip ::1
        Require all granted
     
   
   
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     #Allow from 127.0.0.1
     #Allow from ::1
     Allow from All granted
   

重启Apache,访问http://ip地址/phpMyAdmin/

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

你可能感兴趣的:(centos7安装phpmyadmin)