如何安装phpmyadmin

1、下载安装包并安装服务

yum install phpmyadmin

2、开启远程访问(默认情况下只有127.0.0.1的地址能访问)

2.1打开配置文件 vi /etc/httpd/conf.d

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<Directory /usr/share/phpMyAdmin/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
     </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>

2.2 修改配置
将Deny from All 改成# Deny frome All

2.3 保存退出并重启http服务

Leave a Reply