Lycos中文网 电脑技术 centos使用yum安装phpmyadmin最详细教程

centos使用yum安装phpmyadmin最详细教程

1.添加EPEL库,因为phpmyadmin在EPEL库里

#rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

 

2.#yum -y install phpmyadmin

安装phpmyadmin

 

3.配置phpmyadmin

vim /etc/httpd/conf.d/phpMyAdmin.conf

#   onlineoffline tag – don’t remove

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

改成

#   onlineoffline tag – don’t remove

Order Allow,Deny

Allow from all

 

4.#systemctl restart httpd

重启apache

 

5.访问地址

http://the_IP_of_your_server/phpmyadmin

<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

标签:, ,

发表评论

电子邮件地址不会被公开。 必填项已用*标注