Blog Hosting, Server, Linux, Jaringan Komputer dan Internet 

Home Tutorial Cara upgrade php versi 5.4 ke versi 5.6

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

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 (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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.