Difference between revisions of "Install php 5.6 on CentOS 6.x"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb>Server administration tips and tricks</yambe:breadcrumb>
<yambe:breadcrumb>self="Install php 5.6 on CentOS 6.x"Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb>
=Install php5.6 on CentOS 6.x=
=Install php5.6 on CentOS 6.x=


Line 12: Line 12:
yum -y install php56w-gd  #for graphics
yum -y install php56w-gd  #for graphics
</pre>
</pre>
<yambe:breadcrumb>self="Install php 5.6 on CentOS 6.x"Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb>

Revision as of 07:42, 27 August 2018

<yambe:breadcrumb>self="Install php 5.6 on CentOS 6.x"Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb>

Install php5.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



<yambe:breadcrumb>self="Install php 5.6 on CentOS 6.x"Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb>