Centos下安装配置phpmyadmin

 安装 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

 

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

#

# Web application to manage MySQL

 

#

#

# Order Deny,Allow

# Deny from all

# Allow from 127.0.0.1

#

Alias /phpmyadmin /usr/share/phpmyadmin

Alias /phpMyAdmin /usr/share/phpmyadmin

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 @ 2013-01-08 15:35  siyed  Views(458)  Comments(0Edit  收藏  举报