Home Tutorial Cara upgrade php versi 5.4 ke versi 5.6
formats

Cara upgrade php versi 5.4 ke versi 5.6

Published on May 5, 2017, by in Tutorial.

Langkah awal yaitu install repositori PHP 5.6.xx

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Cek paket list PHP

yum list installed php

Buang semua paket PHP

yum remove php php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc -y

Restart Apache

service httpd restart

Sekarang install PHP 5.6.xx

yum install php56w php56w-opcache -y

Install paket PHP 5.6.xx

yum install php56w-mcrypt -y

yum install php56w-odbc -y

yum install php56w-pdo -y

yum install php56w-pgsql -y

yum install php56w-soap -y

yum install php56w-xml -y

yum install php56w-gd -y

yum install php56w-mbstring -y

Install Modul MySQL

yum install php56w-mysqlnd

Cek versi PHP

php –version

PHP 5.6.30 (cli) (built: Jan 19 2017 22:31:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.9, Copyright (c) 2002-2016, by ionCube Ltd.
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Demikian, semoga bermanfaat.

Leave a Reply

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