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

Programming the DJI Tello [Mac]

Starting off, let’s all admit, you are going to crash into stuff, so more space you have the better. How-to: Program Tello to do backflips with Scratch 2.0! Install brew.sh on your Mac, If you are unfamiliar with brew! Homebrew is a free and open-source software package management system that simplifies the installation of software)…. Read More

Force SSL on a WordPress

I’ve noticed that a .htaccess redirect works from the root folder down, but if you access the website from an old link you won’t be forced to HTTPS. Updating the WP URL structure does not help The Redirect This will work to force the redirect: If you are running WordPress in a sub folder, the… Read More