How do I install memcached server under Red Hat Enterprise Linux or CentOS Linux version6.x server running on IBM hardware to cache query for my php/perl/python based apps? memcached is a high-performance, distributed memory object caching server, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. You need to install the following packages:

perl-Cache-Memcached : Perl client (library) to work with memcached server.

python-memcached : Python client (library) to work with memcached server.

php-pecl-memcache : PHP extension to work with the Memcached server.

Memcached is used by many high traffic sites including YouTube, Reddit, Facebook, Twitter, and many others.Google App Engine, AppScale and Amazon Web Services also offer a memcached service through an API. Memcached is also supported by popular open source projects and CMSs such as Drupal, Joomla, WordPress, and many more.

Actually RHEL-6 installs and outdated version of memcached (1.4.4, released ~2 years ago), I suggest using at least memcached 1.4.10, starting this release there is a big performance and scalability improvements (see developers release notes).

Shouldn’t it be the memcached php module installed if your using memcached? Your install command reflects the php-memcache module not memcached and there are differences so it would be smart to install the proper php module.

sudo yum search php-pecl-memcache

php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon php-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon