Centos Web Panel Upgrade PHP Selector’s PHP Version from 5.6.14 to 5.6.23

You can upgrade your php version to 5.6.23 by using the following steps in SSH Terminal.

rm -rf /tmp/php-build; mkdir -p /tmp/php-build
cd /tmp/php-build

wget http://php.net/distributions/php-5.6.23.tar.bz2

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

tar -xvf php-5.6.23.tar.bz2
cd php-5.6.23/

chmod +x /usr/local/cwp/.conf/php_conf/php56.conf

sh /usr/local/cwp/.conf/php_conf/php56.conf 2>&1

make 2>&1

make install 2>&1

mkdir -p /opt/alt/php56/usr/php
mkdir -p /opt/alt/php56/usr/php/php.d
rsync php.ini-production /opt/alt/php56/usr/php/php.ini

Now you can use this php on your domain using htaccess.Linux Server Administration