Firstly we need to add the Remi repo:
CENTOS 6:wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
CENTOS 7:wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm
Next we need to edit the remi repo: nano -w /etc/yum.repos.d/remi.repo
and find: "[remi-php56]" and change enabled=0
to enabled=1
.
Finally we need to upgrade PHP from 5.4 to 5.6:yum --enablerepo=remi upgrade php-mysql php-deve php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-mcrypt php-imap php-mailparse -y
Most people need ionCube so we can do that with this:wget -N https://licensecart.com/iworx/improved-ioncube.sh;chmod 777 ./improved-ioncube.sh;./improved-ioncube.sh auto
If you have KVM or Xen servers or even own your own OpenVZ dedicated server you can upgrade your kernel with a free trial of KernelCare:rpm -i http://patches.kernelcare.com/kernelcare-latest.el6.x86_64.rpm
.