Sometimes there is no desire to demolish the whole package, or there is any setting, but really need to upgrade. PHP can be updated, I try to distribute the scheme, so.

     First, let's see what our version, run the command:

php -v

The output should be something like:

PHP 5.3.3 (cli) (built: Jul 10 2016 12:20:00)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

PHP 5.3, you can now move on, we will put out turnips Remi, this set it even Epel and if you do not have

epel
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm

remi
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm

To enable the REMI repository on a global level:

nano /etc/yum.repos.d/remi.repo

In the section that looks like [Remi] make the following changes:

[remi]
name=Remi's RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi>

In addition, in the section that looks like [Remi-php56] make the following changes:

[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/php56/$basearch/

mirrorlist=http://rpms.remirepo.net/enterprise/6/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi>

Type CTRL-O, to save and CTRL-X, to close the editor

Now we can update PHP 5.3 to PHP 5.6. Simple command:

yum -y upgrade php*

After the upgrade is complete, make sure that you have PHP 5.6 was established:

php -v

The conclusion should be similar to the following:

PHP 5.6.14 (cli) (built: Sep 30 2015 14:07:43)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

Like this.