Memcache is a memory caching system and its developed by the Danga Interactive. We can install the memcache on the cPanel server by using the following steps.
Login into the server as root user.
Download and install the latest stable memcache version from PECL URL.
cd /usr/src
wget http://pecl.php.net/get/memcache-2.2.5.tgz
tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5
phpize
./configure
make
make install
Once installation completed, make sure that memcache.so is included in the server mains php.ini file.Search the php.ini file
php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
As soon as php.ini file path found out open a php.ini file and add the following line and restart the Apache web service.
extension = “memcache.so”
Now check if memcache extension is loaded or not in the php, execute the following command.
php -i | grep memcach