Mengupgrade Versi PHP dari 5.1 ke 5.3 di Centos


Mengupdate PHP dari versi 5.1 ke 5.3

Menampilkan PHP yang terinstall

[root@gedhang-ghoreng]#yum list installed | grep php | cut -d' ' -f1
php.i386
php-cli.i386
php-common.i386
php-ldap.i386
php-mysql.i386
php-pdo.i386

Menguninstall PHP yang ada

[root@gedhang-ghoreng]#yum remove php php-*

Melihat PHP3 yang tersedia

[root@gedhang-ghoreng]#yum search php53 | cut -d' ' -f1 | grep php

Install PHP3

[root@gedhang-ghoreng]#yum install php53 php53-cli php53-common php53-devel php53-gd php53-imap php53-ldap php53-mbstring\
 php53-mysql php53-odbc php53-pdo php53-xml php53-xmlrpc

sampai disini, PHP sudah terinstall.

[root@gedhang-ghoreng]#php -v
PHP 5.3.3 (cli) (built: Jun 27 2012 12:25:37) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Referensi: drup.org

About abunajiyah
A Programmer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: