Coming soon Turbo Ecommerce Cloud for WordPress

Contact Info

8 The Green Ste R, Dover, DE 19901

(+1) 470 - 809-9620

[email protected]

Get Started
Memcached data server in a server room

How to Install and Secure Memcached on cPanel/WHM for Enhanced Website Performance

Memcached is a memory caching system that improves the performance of database-driven websites. It is compatible with both DirectAdmin and cPanel/WHM servers. Here’s how to install and configure it on a cPanel/WHM server:

  • Install Memcached
    – Log in as root and run:
yum -y install memcached
systemctl enable memcached
  • Secure Memcached
    – Edit the configuration file file to bind Memcached to localhost and prevent external access:
nano /etc/sysconfig/memcached
#Edit the line (or add it) to match
OPTIONS="-l 127.0.0.1 -U 0"

   – Restart Memcached:

systemctl restart memcached

Install PHP Extension

– Log into WHM, navigate to EasyApache 4, select the Memcached PHP extension, and provision it. Restart Memcached after the process completes.

Memcached is now installed and secured. For further assistance, contact GOZEN Host’s 24/7 support team.