Installing Memcached

Memcached is a general-purpose distributed in-memory object caching system, which is often used to speed up and optimize back-end dynamic database performance. It does this by temporarily storing data and objects in the servers RAM/memory (like rendering a popular WordPress page on your blog). This reduces the number of direct requests to your databases, saving it time and resources. This also prepares you for any Slashdot effects that could hit your website.

Memcached Setup
Memcached Setup

Because systems like Memcached can contribute to denial of service attacks (DoS attack) if not set up correctly, it is essential to secure your Memcached servers. So keep the settings local, or harden your server after setup.

Ubuntu setup

In terminal, over SSH, enter these commands:

apt-get update
apt-get install memcached libmemcached-tools
systemctl start memcached
systemctl enable memcached
apt-get install php-memcached
service apache2 restart
Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

[How-to] Host a static website with Google Cloud – GCP

This step-by-step guide shows you how to set up a Cloud Storage bucket to host a static website. Static websites can include client-side codings such as HTML, CSS, and JavaScript. They cannot contain dynamic code such as server-side scripts such as PHP. Why Google Cloud Storage? It is amazingly fast for pennies a month! You… Read More

HTML sitemap w/o a WP Plugin

Have you heard about HTML sitemap? Well, it offers easy navigation for your website visitors. To be more precise, it’s the bulleted outline text version of a website. The visitors can use the sitemap to easily find/locate any topic which they can’t find searching through the whole website menus. The best part is that HTML… Read More