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.

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 @ twitterRelated posts
Backup VestaCP with Restic [Ubuntu]
Now that my VestaCP install is north of 100GB, backups are becoming more challenging. To achieve an extra level of security, I started backing up my server to S3 using Restic. Here are the steps I took to achieve this. 1. SSH into your box.ssh root@IP 2. Install Resticapt install restic *if you don’t have… Read More
Remove a repository in source list using terminal
List You can remove the repository from the sources list using terminal. Find First you need to find your lists: sudo ls /etc/apt/sources.list.d Command Look for your desire PPA here and then remove the PPA using the following command: sudo rm -i /etc/apt/sources.list.d/PPA_Name.list