Site icon David Yin's Blog

How to upgrade php 5.2 to 5.3 on CentOS 5.8

I have a forum running by phpBB 3. After upgrading to phpBB 3.0.10, the board notice said, from phpBB 3.1, the next version, it will not support php5.2.
phpBB 3.1 “Ascraeus” to require PHP 5.3.2
My server is running php 5.2.17 on CentOS 5.8. To prevent the future problem I decide to upgrade php version to 5.3 now.
I followed the instruction of Chris Jean to do the upgrade. But still some issue I fixed by myself. So I put the screen shoot below for reference.
Just briefly log the steps I did.
1) Remove php 5.2
2) Install php5.3, including php53, php53-bcmath, php53-cli, php53-common, php53-devel, php53-gd, php53-ldap, php53-mbstring, php53-mysql, php53-pdo
3) Manually install php53-mcrypt module

Check PHP version.


Check what kind of php components installed.

Search which packages were available for php53

Uninstall the old php 5.2

The result of uninstallation

Install php 5.3, php Cli, php common, php devel, php gd for php 5.3

The result of installation

To install php53-mcrypt, I need libmcrypt-devel package. Later I complied it.

Download php 5.3.3 source package

Intall php mysql, php pdo, php mbstring, php ldap, php bcmath for php 5.3

The result of installation.
The only thing I did later is to install xcache. It has big improvement on forum performance.

Exit mobile version