Install memcached for CentOS6/CloudLinux


Step 1) Enable the EPEL repo for CentOS6.

Step 2) Install the memcached, memcached-devel, and alt-libmemcached (the alt- is only for CloudLinux 6).

Step 3) Setup the configuration:



PORT=”11211″ USER=”memcached” MAXCONN=”256″ CACHESIZE=”1024″ OPTIONS=”-l″

The CACHESIZE is measured in megabytes so adjust accordingly.

Step 4) Enable via chkconfig, start service, and make sure it is running.

Step 5) Install memcache with

pecl install memcache pecl install memcached

Check the result php -m | grep memecache

Leave a Reply

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