首先,我們讓我們的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安裝phpMyAdmin如下:yum install phpmyadmin
現在,我們設定phpMyAdmin。改變Apache的配置,使phpMyAdmin連接,註解掉 3-8行的內容 :
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
下一步,我們改變在phpMyAdmin的身份驗證 將'cookie'改為 'HTTP':
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重新啟動Apache:
之後,您可以根據存取phpMyAdmin http://42.168.0.100/phpmyadmin/管理資料庫了。