Pages

Friday, May 18, 2018

Install Memcache onto cPanel

Memcached is a service that allows entire database tables to be stored in memory, drastically speeding up queries to those tables and alleviating database load. In WordPress and W3 Total Cache, the Memcached module allows you to store all cache tables in memory.
This guide can be used to set up Memcached on CentOS.

To install memcached on cpanel server, login to SSH as user root, run

   
yum install memcached
Enable memcached start on boot with
systemctl enable memcached
Start memcached with
   
systemctl start memcached

Enable memcached PHP module
For PHP applications to use memcached, we need PHP module installed. To install login to WHM as user root, go to
Home > Software > Module Installers









Click on Manage link for PHP Pecl. On next screen, search for memcache.





Click the link link right side of memcache and memcached.


Now check phpinfo() page, you will see memcache listed.





No comments:

Post a Comment