Centos下yum安装配置phpmyadmin 2.22

安装 phpMyAdmin管理数据库

CentOS系统中启用RPMForge软件库安装phpMyAdmin:

64位系统使用如下命令

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

rpm -Uhv rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

32位系统使用如下命令:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

rpm -Uhv rpmforge-release-0.5.2-2.el5.rf.i386.rpm

现在可以安装phpMyAdmin如下命令:

yum install phpmyadmin

现在配置phpMyAdmin。需要改变Apache的配置,使phpMyAdmin不只是从本地主机连接(通过注释掉):

vi /etc/httpd/conf.d/phpmyadmin.conf

找到相似内容代码,作如下配置:

 1 #
  2  
  3  # Web application to manage MySQL
  4  
  5  #
  6  
  7  #
  8  
  9  # Order Deny,Allow
 10  
 11  # Deny from all
 12  
 13  # Allow from 127.0.0.1
 14  
 15  #
 16  
 17  Alias /phpmyadmin /usr/share/phpmyadmin
 18  
 19  Alias /phpMyAdmin /usr/share/phpmyadmin
 20  
 21  Alias /mysqladmin /usr/share/phpmyadmin

 

下一步,我们改变在phpMyAdmin认证cookie为HTTP:

vi /usr/share/phpmyadmin/config.inc.php

找到相似内容代码,作如下配置:

/* Authentication type */

$cfg['Servers'][$i]['auth_type'] = ‘http’;

重启Apache:

/etc/init.d/httpd restart

访问下phpMyAdmin,地址:http://192.168.0.100/phpmyadmin/

相关软件连接:

Apache: http://httpd.apache.org/

PHP: http://www.php.net/

MySQL: http://www.mysql.com/

CentOS: http://www.centos.org/

phpMyAdmin: http://www.phpmyadmin.net/

posted @ 2012-09-18 15:13  xiaoshi1991  阅读(246)  评论(0编辑  收藏  举报