upgrade php version to 5.6

Subject:

first remove what you haveyum remove php and check what the version is and if it is that version you want to removeInstalling PHP 5.6 on CentOS 6 and 7

Install the SCL Repo:

yum install centos-release-scl

Install the PHP packages

yum install rh-php56 rh-php56-php-mysqlnd

Lastly, see the information on configuring the second PHP version below.

Installing PHP 7 on CentOS 6 and 7

Install the SCL Repo:

yum install centos-release-scl

Install the PHP packages

yum install rh-php70 rh-php70-php-mysqlnd

2017-07-01 13:50:55gstlouis