Install PHP Memcached() on CentOS 5
If you want to have direct access to the Memacache() object from PHP on CentOS, the easiest way is using yum and the Remi repository.
To install the repository for various platforms, see http://blog.famillecollet.com/pages/Config-en but basically type the following:
wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
The repository is not enabled by default, but you can edit it in /etc/yum.repos.d/remi.repo setting enablerepo to 1 to have it always on. Otherwise use –enablerepo=remi in your yum commands.
yum --enablerepo=remi install memcached php-pecl-memcache php-pecl-memcached