zoukankan      html  css  js  c++  java
  • CentOS上安装phpMyAdmin

    首先安装 RHEL EPEL Repo

    Centos 5.x

    wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
    sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

    Centos 6.x

    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

    Enable the remi repository

    sudo vim /etc/yum.repos.d/remi.repo
    name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
    #baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
    mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
    failovermethod=priority

     

    安装phpMyAdmin

    yum install phpmyadmin
    修改:/etc/httpd/conf.d/phpMyAdmin.conf
    <Directory /usr/share/phpMyAdmin/>
       <IfModule mod_authz_core.c>
         # Apache 2.4
         Require local
       </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>

    把 “Deny from all"注释掉,允许远程访问

    最后重启apache:

    service httpd restart


  • 相关阅读:
    prev()方法使用的注意点
    JS 获取图片的高度
    渐变色
    JS获取时间
    监听鼠标上下滚动事件
    几种常见的边框样式
    左侧导航背景颜色随机变化
    apache开启gzip压缩
    dedecms在linux上安装提示没权限解决办法
    阿里云centos7.3安装lamp环境
  • 原文地址:https://www.cnblogs.com/moher/p/2877292.html
Copyright © 2011-2022 走看看