Install/Upgrade ke PHP 7 di CentOS 7

2 Maret 2017

Berikut catatan langkah-langkah upgrade versi PHP ke PHP Versi 7 di mesin Linux CentOS 7:

A. Cek versi PHP saat ini:

# php –version
PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

B. Download Remi and EPEL Repository packages

$ wget -q http://rpms.remirepo.net/enterprise/remi-release-7.rpm
$ wget -q https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

C. Install paket-paket yang telah di-download di atas dan set enable Remi PHP 7 repo (pastikan paket yum-utils telah terpasang) :

# rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
FOR PHP 7.0 EXECUTE:
# yum-config-manager –enable remi-php70
FOR PHP 7.1 EXECUTE:
# yum-config-manager –enable remi-php71

D. Install or Upgrade to PHP 7

# yum install php

atau

# yum update

E. Cek versi PHP sekarang

# php –version
PHP 7.1.0 (cli) (built: Dec 1 2016 08:13:15) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies

Sumber: linuxconfig[.]org/how-to-install-or-upgrade-to-php-7-on-centos-linux-server

Tidak ada Komentar

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

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