Post4VPS Forum | Free VPS Provider
Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7 - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion)
+--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials)
+--- Thread: Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7 (/Thread-Simple-Upgrade-PHP-to-PHP-Version-5-6-13-Cento-OS-5-6-7)



Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7 - Littlemaster - 09-25-2015

Run these commands as root
Cent OS 5
Code:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
yum install yum-plugin-replace -y -y
yum replace php-common --replace-with=php56w-common -y
yum install php56w php56w-opcache -y

Cent OS 6
Code:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace -y -y
yum replace php-common --replace-with=php56w-common -y
yum install php56w php56w-opcache -y
Cent OS 7
Code:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el7/latest.rpm
yum install yum-plugin-replace -y -y
yum replace php-common --replace-with=php56w-common -y
yum install php56w php56w-opcache -y
Run php -V to check current version.
Latest PHP versions are faster than old versions.


RE: Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 6 - Rishabh Jain - 09-25-2015

i prefer if you include the command for CentOS/RHEL 7  as well, the above command is only for CentOS 6, mention that in the thread too

For CentOS/REHL 7 Wrote:
Code:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum install php56w php56w-opcache #for Fresh

yum install yum-plugin-replace #for upgrade from existing version
yum replace php-common --replace-with=php56w-common #for upgrade from existing version



RE: Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7 - Conan - 09-27-2015

or You could have installed the remi repo then enabled the php-56 repo then did a
Code:
yum update



RE: Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7 - Littlemaster - 09-28-2015

(09-27-2015, 04:59 PM)Conan Wrote: or You could have installed the remi repo then enabled the php-56 repo then did a
Code:
yum update
I had conflict errors with remi.It was weird.
php56-common conflicts with php-common
Always better replacing the package.


RE: Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7 - Conan - 09-28-2015

(09-28-2015, 10:52 AM)Littlemaster Wrote:
(09-27-2015, 04:59 PM)Conan Wrote: or You could have installed the remi repo then enabled the php-56 repo then did a
Code:
yum update
I had conflict errors with remi.It was weird.
php56-common conflicts with php-common
Always better replacing the package.

I use php-fpm since I use nginx.

You can just do a yum replace also.