首先,我们使我们的Centos系统的RPMForge软件库PHPMyAdmin,不是官方的CentOS 6.0库,导入rpmforge的GPG密钥: rpm –import Http://dag.wieers.com
首先,我们使我们的Centos系统的RPMForge软件库PHPMyAdmin,不是官方的CentOS 6.0库,导入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连接,注释掉 3-8行的内容 :
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
$cfg['Servers'][$i]['auth_type'] = 'http';
重新启动Apache:
/etc/init.d/httpd restart
之后,您可以根据访问phpMyAdmin http://42.168.0.100/phpmyadmin/管理数据库了。
--结束END--
本文标题: 阿里云CentOS 6.3安装phpMyAdmin的简单步骤
本文链接: https://lsjlt.com/news/9395.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0