120 - To install PHP 5.2.x & MySQL 5.1.x in CentOS 5.x
phpMyAdmin v3.x needs to have PHP 5.2 and later version. But CentOS 5.x has still PHP 5.1.x.
This is one of methods on PHP & MySQL upgrade processes for CentOS 5.x.
1. Check your software versions in terms of PHP & MySQL
# php -v # yum list installed php* # mysql -V |
2. Install third party repository
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarc... # wget http://rpms.famillecollet.com/el5.i386/remi-release-5-8.el5.remi.noarch.rpm # rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm # wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.... |
<If only upgrade to PHP 5.2>
You should enable centos-dev, you need to create
/etc/yum.repos.d/centos-test.repo and enter following lines in it:
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
3.Install new php 5.2.x & mysql 5.1.x
# yum -y --enablerepo=remi,epel update php* # yum -y --enablerepo=rpmforge update mysql* |
4. Check the new versions
# php -v # mysql -V |
5. Restart Apache & MySQL
# /etc/rc.d/init.d/httpd restart # /etc/rc.d/init.d/mysqld restart |
6.Remove repository, if you need
# rpm -e rpmforge-release-0.3.6-1.el5.rf.i386 # rpm -e remi-release-5-6.el5.remi # rpm -e epel-release-5-3 |
- Log in to post comments