Here we are upgrading PHP 5.3 to PHP 5.6 on CentOS.
1. Confirm the current version: php -v
PHP 5.3.3 (cli) (built: Jul 9 2015 17:39:00)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
2. Install the Remi and EPEL RPM repositories
If you haven’t already done so, install the Remi and EPEL repositories
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm
3. Enable the REMI repository globally:
vi /etc/yum.repos.d/remi.repo
Under the section that looks like [remi] and [remi-php56] change the following
enabled=0 to enabled=1
4. Upgrade PHP 5.3 to PHP 5.6
yum -y upgrade php*
let’s verify that you have PHP 5.6 installed:
php -v
PHP 5.6.14 (cli) (built: Sep 30 2015 14:07:43)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
If you get some error, http://www.linuxblackmagic.com/2017/08/323-packages-excluded-due-to-repository.html
1. Confirm the current version: php -v
PHP 5.3.3 (cli) (built: Jul 9 2015 17:39:00)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
2. Install the Remi and EPEL RPM repositories
If you haven’t already done so, install the Remi and EPEL repositories
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm
3. Enable the REMI repository globally:
vi /etc/yum.repos.d/remi.repo
Under the section that looks like [remi] and [remi-php56] change the following
enabled=0 to enabled=1
4. Upgrade PHP 5.3 to PHP 5.6
yum -y upgrade php*
let’s verify that you have PHP 5.6 installed:
php -v
PHP 5.6.14 (cli) (built: Sep 30 2015 14:07:43)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
If you get some error, http://www.linuxblackmagic.com/2017/08/323-packages-excluded-due-to-repository.html
No comments:
Post a Comment