Sian 发表于 2014-9-16 14:27:10

如何安装phpmyadmin

1、下载安装包并安装服务
yum install phpmyadmin

2、开启远程访问(默认情况下只有127.0.0.1的地址能访问)
2.1打开配置文件 vi /etc/httpd/conf.d
<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服务
页: [1]
查看完整版本: 如何安装phpmyadmin