Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a newer version of PHP than what Yum installs?

Tags:

linux

php

yum

I have installed PHP by executing the following command:

yum install php

It installs PHP 5.3.3 in my server... but I want to install PHP 5.4. How can I do that?

like image 484
pkk Avatar asked Jan 31 '26 23:01

pkk


1 Answers

Saw it on https://webtatic.com/packages/php54/

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:

CentOS/RHEL 7.x:

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

CentOS/RHEL 5.x:

rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

Now you can install php by doing:

yum install php54w
like image 125
barbarity Avatar answered Feb 03 '26 13:02

barbarity



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!