• 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


  • 相关阅读:
    c++父类指针子类指针转化分析
    setbuf手册
    c++细节
    cf727e
    总结
    UVa 10192 Vacation (最长公共子序列)
    HUNNU 11313 最长公共子序列(LCS)
    HDU 2069 Coin Change (经典DP)
    UVa 674 Coin Change (经典DP)
    UVa 10131 Is Bigger Smarter? (LDS+数据结构排序)
  • 原文地址:https://www.cnblogs.com/moher/p/2877292.html
Copyright © 2020-2023  润新知