PHP Requirements

PHP Version 5.2 or greater is required to operate this module. If your system runs a lower version, you will need to update.

The following instructions are provided for system that can use YUM to update.

###
### Upgrading to PHP 5.2:
###
cat > /etc/yum.repos.d/CentOS-Testing.repo << EOF
# CentOS-Testing
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These instructions limit the yum update being used to PHP related updates ONLY.
#
[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
includepkgs=php*
EOF

yum --enablerepo=c5-testing upgrade
yum --enablerepo=c5-testing install php-devel
pecl --enablerepo=c5-testing channel-update pear.php.net
pecl --enablerepo=c5-testing install fileinfo

chown -R asterisk:asterisk /var/lib/php/session/

reboot

Also available in: HTML TXT