Tutorial ini saya buat sebagai referensi pribadi saya dan mudah-mudahan bermanfaat juga untuk teman pembaca semua.
PHP yang ada pada centos 6.2 defaultnya yang terbaru adalah versi 5.3.3 :
# php -v
PHP 5.3.3 (cli) (built: Jan 11 2012 19:53:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Dan ternyata versi ini masih memiliki kelemahan atau vulnerability jika di DDos maka akan down service httpd nya. Untuk itu harus di upgrade ke versi 5.3.9.
PHP versi 5.3.9 ini tidak ada pada default repository milik centos 6.2. Untuk itu kita harus download manual php nya dan melakukan instalasi file rpm yang dibutuhkan.
Berikut langkah-langkahnya :
1. Download file php yang dibutuhkan :
# wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] # wget
[You must be registered and logged in to see this link.] 2. Lakukan instalasi file yang sudah di download :
# rpm -ivh *.rpm
Preparing... ########################################### [100%]
1:php-common ########################################### [ 6%]
2:php-cli ########################################### [ 13%]
3:php ########################################### [ 19%]
4:php-pdo ########################################### [ 25%]
5:php-mysql ########################################### [ 31%]
6:php-devel ########################################### [ 38%]
7:php-dba ########################################### [ 44%]
8:php-embedded ########################################### [ 50%]
9:php-gd ########################################### [ 56%]
10:php-ldap ########################################### [ 63%]
11:php-mbstring ########################################### [ 69%]
12:php-process ########################################### [ 75%]
13:php-soap ########################################### [ 81%]
14:php-xml ########################################### [ 88%]
15:php-xmlrpc ########################################### [ 94%]
16:php-zts ########################################### [100%]
3. Restart service apache nya :
# /etc/init.d/httpd restart
Selesai, sekarang versi php nya sudah di upgrade ke versi 5.3.9 :
# php -v
PHP 5.3.9 (cli) (built: Jan 14 2012 21:15:53)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies