我们使用CentOS系统RPMForge软件库的phpMyAdmin,而不是官方的库:所以需要导入RPMForge的GPG密钥:
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
x86_64系统:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
在i386系统:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
安装phpmyadmin
yum install phpmyadmin
现在我们可以设置phpMyAdmin,了我们可以改变Apache的配置来让phpMyAdmin不仅仅只能从localhost登录。
vi /etc/httpd/conf.d/phpmyadmin.conf
<Directory “/usr/share/phpmyadmin”>
Order Deny,Allow
Deny from all
# Allow from 127.0.0.1
Allow from all
</Directory>
修改phpMyAdmin的身份验证方式为http:
vi /usr/share/phpmyadmin/config.inc.php
/* Authentication type */
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;
转载请注明:自动化运维 » REHL/CentOS安装phpMyadmin