IT猫扑网:您身边最放心的安全下载站! 最新更新|软件分类|软件专题|手机版|论坛转贴|软件发布

您当前所在位置:首页操作系统LINUX → CentOS 6.0安装phpMyAdmin的教程

CentOS 6.0安装phpMyAdmin的教程

时间:2015/6/28来源:IT猫扑网作者:网管联盟我要评论(0)

phpMyAdmin是一个Web界面,通过它可以管理你的mysql数据库。那么怎么在centos 6.0安装phpMyAdmin呢?本文我们就来介绍这一安装过程,希望能够对您有所帮助。

首先,我们使我们的CentOS系统的RPMForge软件库phpMyAdmin,不是官方的CentOS 6.0库,导入rpmforge的GPG密钥:


  1. rpm –import https://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt  

x86_64 系统安装命令:


  1. yum install https://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 

i386 系统安装命令:


  1. yum install https://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm  

现在可以安装phpMyAdmin如下:


  1. yum install phpmyadmin 

现在,我们配置phpMyAdmin。改变Apache的配置,使phpMyAdmin连接,而不仅仅是从localhost(注释掉允许) :


  1. vi /etc/httpd/conf.d/phpmyadmin.conf   
  2. #  
  3. # Web application to manage MySQL  
  4. #  
  5. #  
  6. # Order Deny,Allow  
  7. # Deny from all  
  8. # Allow from 127.0.0.1  
  9. #  
  10. Alias /phpmyadmin /usr/share/phpmyadmin  
  11. Alias /phpMyAdmin /usr/share/phpmyadmin  
  12. Alias /mysqladmin /usr/share/phpmyadmin 

下一步,我们改变在phpMyAdmin的身份验证cookie ,HTTP:


  1. vi /usr/share/phpmyadmin/config.inc.php[...]  
  2. /* Authentication type */  
  3. $cfg['Servers'][$i]['auth_type'] = ‘http’;  
  4. [...]  

重新启动Apache:


  1. /etc/init.d/httpd restart  

之后,您可以根据访问phpMyAdmin https://192.168.0.100/phpmyadmin/管理数据库了。

本文我们就介绍到这里了,希望本次的介绍能够对您有所帮助。

关键词标签:CentOS,phpMyAdmin,教

相关阅读

文章评论
发表评论

热门文章 安装红帽子RedHat Linux9.0操作系统教程安装红帽子RedHat Linux9.0操作系统教程使用screen管理你的远程会话使用screen管理你的远程会话GNU/Linux安装vmwareGNU/Linux安装vmware如何登录linux vps图形界面 Linux远程桌面连如何登录linux vps图形界面 Linux远程桌面连

相关下载

人气排行 Linux下获取CPUID、硬盘序列号与MAC地址linux tc实现ip流量限制dmidecode命令查看内存型号linux下解压rar文件安装红帽子RedHat Linux9.0操作系统教程Ubuntu linux 关机、重启、注销 命令lcx.exe、nc.exe、sc.exe入侵中的使用方法查看linux服务器硬盘IO读写负载