If you are using a 2.2.x box, and can't upgrade the full OS for whatever reason, but you need to upgrade PHP and MySQL (to keep using SugarCRM for example) here is how to do it, with a few caveats:
1) Rhino drivers in the repo's are BADLY broken - upgrading to them will incapaticate your box badly - if you are using rhino drivers, do the following:
a) yum remove rhino*
b) download drivers from here: and install the drivers appropriate to your kernel and version:
ftp://ftp.rhinoequipment.com/Drivers/RPMS/trixbox/CE/2.2/
2) Sangoma drivers for 2.2.x work ok, but they do tend to panic the kernel on reboot - search through the forums for a workaround, or install the drivers from source - your choice, but if you have Sangoma and are not very confident with tweaking .conf's or compiling from source, you may really want to reconsider upgrading!!!
Ok, with the warning out of the way, it's a fairly straight forward process.
1) yum update -y --exclude=rhino - get ALL the patches for your TB 2.2 machine - this will bring you to 2.2.12, the last official version of the 2.2 tree. If you have a problem with this command, apply the fix described here:
http://www.trixbox.org/wiki/zaptel-not-loading-2-2-x
2) Enable the CentOS Plus Repository:
a) cd /etc/yum.repos.d
b) nano -w CentOS-Base.repo and look for the following lines:
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
The second line from the bottom - that's the one we want to change. Change it from
enabled=0
to
enabled=1
and save the file and exit.
c) yum update php* mysql* - this will get you version 5.1.6 of PHP and 5.0.58 of MySQL
d) nano -w /etc/yum.repos.d/CentOS-Base.repo and disable the CentOS Plus repo
e) pear install DB - otherwise, FreePBX won't work anymore
f) chown asterisk:asterisk /var/lib/php/session/ -R - reclaim the PHP Session directory for Asterisk
And you are done - at this point you will have ALL the patches for your 2.2 box, you will have the equivalent of 2.2.12 and you will have a version of PHP and MySQL compatible with version 5 of SugarCRM. Enjoy.
Next up, upgrade to Asterisk 1.4 on your 2.2 box!
Greg