Friday, May 27, 2016

Upgrade PHP ke Versi 5.6.x di Centos

Bagi Anda yang mysqli-nya tidak jalan dan mengalami kesulitan upgrade PHP ke versi 5.6.x mungkin saran di bawah cocok dengan situasi yang Anda hadapi sekarang :

Editlah file /etc/yum.repos.d dan simpan kode berikut di bagian paling atas :

[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php56]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Kemudian save dan kemudian install php kembali dengan perintah (saya anggap PHP Anda sudah di-uninstall sebelumnya) :

sudo yum install php php-gd php-mysql php-mcrypt

Kemudian restart-lah Apache Anda...

No comments:

Post a Comment