2010年4月15日 星期四

安裝phpMyAdmin

OS: CentOS 5.4

抓最新版的phpMyAdmin 3.3.2
解壓縮, 放到 /var/www/html/
開browser, http://localhost/phpMyAdmin
出現須要PHP5.2+
用php -v只到5.1.x
用yum install php還是5.1.x
google找到http://blog.lilujun.com/post/1208/

首先在/etc/yum.repos.d/CentOS-Base.repo 文件末尾添加以下代碼:
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

保存此文件,執行yum --disablerepo=\* --enablerepo=c5-testing install php

後, php到5.2.10

http://wiki.phpmyadmin.net/pma/Setup
安裝完 phpMyAdmin後, 進http://localhost/phpMyAdmin
出現沒load mcrypt的錯誤
用yum install php-mcrypt後還是一樣 (已重開httpd)
用php -v發現load mcrypt失敗 (應該是mcrypt和php版本不相容)
用yum --disablerepo=\* --enablerepo=c5-testing install php-mcrypt 即可解決

沒有留言:

張貼留言