Red hat linux

PHP 5.6 on CentOS/RHEL 7.4 and 6.9 via Yum

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
rpm -Uvh

CentOS/RHEL 6.x:

rpm -Uvh
rpm -Uvh

Remove old php version

yum remove php*

Now you can install PHP 5.6’s mod_php SAPI (along with an opcode cache) by doing:

yum install php56w php56w-cli php56w-common php56w-devel php56w-gd php56w-imap php56w-intl php56w-mbstring php56w-mcrypt php56w-mysql php56w-pdo php56w-xml php56w-xmlrpc

Leave a Reply

Your email address will not be published. Required fields are marked *