I was able to upgrade to PHP 5.6.9 by following the following instructions (Reference: https://webtatic.com/packages/php56/)To install, first you must add the Webtatic EL yum repository information corresponding to your Cent OS/RHEL version to yum: Cent OS/RHEL 7.x:rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/web ...
Cent OS/RHEL 6.x:rpm -Uvh https://mirror.webtatic.com/yum/el6/Now you can install PHP 5.6 (along with an opcode cache) by doing:yum install php56w php56w-opcache If you would like to upgrade php to this version it is recommended that you first check that your system will support the upgrade, e.g.
As our development projects expand we're finding we often need newer versions of PHP, Python, Ruby, etc than are provided by Red Hat. There doesn't appear to be a great universal solution.
We've started looking at Red Hat Software Collections, which has a slightly awkward implementation but seems to be workable.
Stability addicts can keep quiet, PHP 5.3.3 is still the standard version provided with RHEL-6.
We’ll soon have an official and supported way to install PHP version 5.4, beside the system version, without any effect on installed components.
We have to balance providing access to modern libraries but using a stable OS in a production environment.A couple of years ago I posted about Howto install PHP Mcrypt on Cent OS using EPEL which is one of my sites most popular posts! First up we need EPEL and secondly we need Remi a French guy who is king of PHP repos!So Cent OS and PHP, as you can see below (taken from Distro Watch) Cent OS is a bit outdated with it’s PHP versions which as a PHP developer can be a pain in the ass! Open up a SSH connection to your server and run the following commands (make sure you run as sudo if you need to): [remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch #baseurl= mirrorlist= enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi make sure this is set!It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.If you know what you are doing, you can upgrade PHP by:yum install yum-plugin-replace yum replace --enablerepo=webtatic-testing php-common --replace-with=php56w-common It will likely give you a message “WARNING: Unable to resolve all providers …”. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.I need to update PHP version but I don't know how to do that any help will be highly appreciated.I found this document but I am not sure how to use it: i run the following command I get the results: # yum list installed | grep "php"php.x86_64 5.4.16-23.el7_0.3 @base php-cli.x86_64 5.4.16-23.el7_0.3 @base php-common.x86_64 5.4.16-23.el7_0.3 @base php-mysql.x86_64 5.4.16-23.el7_0.3 @base php-pdo.x86_64 5.4.16-23.el7_0.3 @base I am sorry, if I caused any inconvenience.To install packages from RHSC, you first enable the collection, then you can do a . If it's the only php package that is installed, I think you can simply reload apache and it will work.I still use Cent OS as my distro of choice on any new server and whilst things are getting better Cent OS and RHEL still don’t have up to date versions of PHP available inside the default yum repos.The announcement tells us the life cycle will be 3 years.Warning: it’s a beta version, published for evaluation purposes.