技术开发 频道

服务器搭建 在CentOS 6.0 上安装LAMP

  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

 

 

#
# 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/管理数据库。

  8.相关链接

  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/

0
相关文章