Installing memcache on cPanel is not natively supported (like selecting a module in easyapache) but the installation is not so complicated either:

Firstly, access your server via SSH and:

run the command:

yum install -y memcached

This will install memcache and all the required dependencies.

Now access your servers WHM > Software > Module installer > PHP Pecl. Here, search for memcache. There will be two results:

[box type=”info” ]memcache
memcached

Install Both of them.

After this step, return to SSH and execute de following command:

memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody

(d = daemon, m = memory, u = user, l = IP to listen to, p = port)

You can adjust the memory value according to your needs, more or less than 512 MB

Leave a Reply