Install Memcached with PHP extensions in 5 mins (CentOS)

Memcached is a distributed Memory caching system, it is probably the de facto standard of caching facility for high performance web applications. In short, it is a key-value store which runs entirely in the memory, so it’s extremely fast and also proven to be reliable to handle high traffic.

Steps to install on CentOS (just works!)

Run the following commands one by one in the terminal, this will install the memcached server, and the PHP “Memcahe” classes needed to be used by PHP applications.

Your PHP application should be able to use Memcached now! (I have tested this on a freshly created VPS, so it should work fine). If you want the latest PHP and Memcached, please install the Remi repo¬†and use –enablerepo=remi.

Config the memcached service

To make Memcached runs when CentOS start

Share your thoughts