In order to install memcache on your cPanel server, you will need to get your fingers dirty with a bit of command line work:

Firstly, access your server via SSH and:

run the command:

yum install -y memcached memcached-devel

This will install memcache and all the required dependencies.

Now access your servers WHM > EasyApache 4 > Customize > PHP Extensions. Here, search for:


You will have to install it for the PHP version that you want to use.

After this step, return to SSH and edit the configuration file:


Here, you will have to set a larger memory value, for example:


Save the file and start memcached service:

service memcached start

check that memcached is running:

[root@elvis ~]# ps aux |grep memcached
memcach+ 1234 0.0 0.1 323114 12453 ? Ssl 12:04 0:00 /usr/bin/memcached -u memcached -p 11211 -m 512 -c 102

Leave a Reply