Ubuntu Linux 12.04/14.04 LTS Install Memcached Server For Python and PHP Apps

Ubuntu Linux 12.04/14.04 LTS Install Memcached Server For Python and PHP Apps

To install the Memcached server on an Ubuntu Linux 12.04 or 14.04 LTS system, you can follow these steps:

  1. Update your system's package repositories by running the following command:
sudo apt-get update
Source:w‮w‬w.lautturi.com

This will ensure that you have the latest packages and security updates installed on your system.

  1. Install the Memcached server and the necessary dependencies by running the following command:
sudo apt-get install memcached libmemcached-tools
  1. Start the Memcached server by running the following command:
sudo service memcached start
  1. Enable the Memcached server to start automatically when the system boots by running the following command:
sudo update-rc.d memcached defaults
  1. To use the Memcached server with Python applications, you can install the pymemcache Python module by running the following command:
pip install pymemcache
  1. To use the Memcached server with PHP applications, you can install the php5-memcache PHP extension by running the following command:
sudo apt-get install php5-memcache
  1. Restart the Apache HTTP server to apply the changes by running the following command:
sudo service apache2 restart

You can find more information about installing and using the Memcached server on Ubuntu Linux systems in the Memcached documentation or by searching online.

Created Time:2017-10-30 14:27:24  Author:lautturi