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 but basically type the following:

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

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *