arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Upgrade PHP to PHP Version 5.6.13 Cento OS 5,6,7
#1
Run these commands as root
Cent OS 5
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
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
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.


Thank you  Sweet



#2
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:
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
#3
or You could have installed the remi repo then enabled the php-56 repo then did a
yum update
http://FreeVPS.club - Free VPSs!
#4
(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
yum update
I had conflict errors with remi.It was weird.
php56-common conflicts with php-common
Always better replacing the package.


Thank you  Sweet



#5
(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
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.
http://FreeVPS.club - Free VPSs!



person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting