zoukankan      html  css  js  c++  java
  • centos7 安装phpmyadmin

    1、先安装epel,不然安装pgpmyadmin时会出现找不到包。

    yum install epel-release
    rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

    2、

    sudo yum install phpmyadmin

    3、修改配置文件

    sudo vi /etc/httpd/conf.d/phpMyAdmin.conf
    <Directory /usr/share/phpMyAdmin/>
       AddDefaultCharset UTF-8
    
       <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
       </IfModule>
    </Directory>
    
    <Directory /usr/share/phpMyAdmin/setup/>
       <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
       </IfModule>
    </Directory>

    4、重启httpd使改动生效。

    sudo systemctl restart httpd

    5、测试

    ip/phpmyadmin
  • 相关阅读:
    Python将字符串转换成字典
    MySQL索引、视图
    MySQL高级查询
    MySQL函数应用
    MySQL约束
    MySQL基础查询
    MySQL数据库基本语法
    MySQL数据库存储引擎
    MySQL数据库简介与命令行操作
    MySQL 安装和配置环境变量
  • 原文地址:https://www.cnblogs.com/teamemory/p/8668030.html
Copyright © 2011-2022 走看看