Celebrate Our 22nd Anniversary with Huge Savings! Up to 70% Off

How to install memcache in WHM/cPanel server (CentOS)?

The following article will assist you in installing Memcache in cPanel/WHM server.

1. Log in to your WHM.

2. Locate the Software section and select Module Installers. Here you will see the list of installed language modules.

Software Section

3. Click on the Manage button of the PHP Pecl language module.

Module Installers

4. Under the Find a PHP Pecl search bar, search for "memcache" and click the Go button.

PHP PECL Installer

5. From the search results, install both memcache & memcached.

Install Memcache

6. At the end of each installation, scroll down to make sure each of them is installed perfectly and does not give any errors. If you receive a dependency error while installing memcached, connect to the server via SSH and run the following command.

yum install libmemcached.

7. Once these PHP Pecls are installed, restart the Apache service by issuing the following command in SSH.

service httpd restart


Was this answer helpful?

« Back

chat