Install php 5.6 on CentOS 6.x

From Notes_Wiki
Revision as of 15:53, 22 July 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 6.x > Server administration tips and tricks > Install php 5.6 on CentOS 6.x

By default using yum an older version of PHP is available on CentOS 6.x. To install php5.6 via yum use:

  1. yum localinstall https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
  2. yum localinstall https://mirror.webtatic.com/yum/el6/latest.rpm
  3. yum -y install php56w

For other packages similarly append 56w to the names. Example:

yum -y install php56w-mysqlnd
yum -y install php56w-gd  #for graphics


Home > CentOS > CentOS 6.x > Server administration tips and tricks > Install php 5.6 on CentOS 6.x