Installing PHP 5.3.3 on CentOS 5.5 Tutorial

Update: This tutorial will install PHP 5.3.6

In celebration of CentOS now leading the Linux distribution statistics on web servers, with almost 30% of all Linux servers, we thought it fitting that in this tutorial we will show you how to install PHP 5.3.3 (Supports the Kohana Framework) with APC and Memcached on CentOS 5.5.

The assumption for this CentOS 5.5 tutorial is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully.

Preliminary Note:

I am using a CentOS 5.5 32bit server in this tutorial:

* (IP

Installing PHP 5.3 on CentOS 5.5 i386

Install the EPEL i386 YUM Repository

# rpm -Uvh

Install the IUS i386 YUM Repository

# rpm -Uvh

NOTE: If you have a previously installed version of PHP run this command.

UPDATE: The above will install APC version 3.1.9 which does not have the bug mentioned below.

NOTE: Version 3.1.4 of APC has a bug that will give you this error in you error.log file PHP Warning: require(): Unable to allocate memory for pool.

To resolve this do the following

Finally browse to your phpinfo.php and view your newly configured PHP 5.3.3 Apache server.