How to Install Memcached on Ubuntu 12.04 LTS

Memcached is a system that works to speed up virtual private servers by caching server information. It is a high-performance distributed memory object caching that caches objects for faster website performance. The program functions somewhat like short term memory for your applications. Memcached runs on Unix, Linux, Mac OS X, Ubuntu, PHP and Windows. Installation of memcached on Ubuntu 12.04 is very simple. You can see how to install Memcache on Ubuntu 12.04.

Step 1 : To make sure that all of the packages we download to the VPS are up to date. Use the following command. 

sudo apt-get update

Step 2 : You should have MySQL and PHP installed on the virtual server.

sudo apt-get install mysql-server php5-mysql php5 php5-memcache

 

To Install Memcache on Ubuntu 12.04

Step 1 : To install memcached via apt-get by using following command. 

sudo apt-get install memcached

Step 2 : To install php-pear, the repository that stores memcache by using following command.

sudo apt-get install php-pear

Step 3 : To use PECL (PHP Extension Community Library) to install memcached by using following command.

sudo pecl install memcache

Step 4 : Click to Enable memcache session handler support? [yes].

You have completed the installation of memcache with PECL on the VPS

Add memcached to memcache.ini by using following command.

echo “extension=memcache.so” | sudo tee /etc/php5/conf.d/memcache.ini

You can start to using Memcache.

 


Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Recent Posts

From Hobbyist to Professional: Selling Photos Online

In today's digital age, the line between hobby photography and professional photography has become increasingly blurred. With the rise of…

4 days ago

Windows Web Hosting: Essential Insights for Beginners

Are you taking your first steps into the world of web hosting? You're not alone. Every day, countless individuals and…

6 days ago

Crafting a Professional Email: Step-by-Step Guide

Due to growing digitalization, Email Communication has become the backbone of professional interactions. Yet, surprisingly, many professionals struggle to craft…

2 weeks ago

Demystifying SSL: What Every Website Owner Should Know

As the digital landscape continues to evolve, securing your website has never been more crucial. SSL, or Secure Sockets Layer,…

4 weeks ago

Cyberduck and FileZilla: A Comprehensive Comparison

As a web designer and web developer your experience must have reached to new height, right? Further, you need to…

2 months ago