How-to Install Latest PHP Memcached with Sasl Support on Ubuntu 15.04 Vivid 32-64bit GNU/Linux

May 20th, 2015 by thelinuxevangelist

Linux Ubuntu PHP Memcached Extension Installation



The Linux Tutorial Shows You Step-by-Step How-to Install the Latest PHP memcached Extension with Sasl support from source for Ubuntu 15.04 Vivid Vervet i386/amd64 GNU+Linux.

The PHP memcached extension is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

This extension uses the libmemcached library to provide an API for communicating with memcached servers. It also provides a session handler (memcached).

Memcached is a Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is also an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Installing Php memcached with Sasl support from source on Ubuntu Linux - Featured
  1. How-to Install/Enable PECL Command on Ubuntu Linux:

    PHP PECL for Ubuntu
  2. Open a Shell Session
    Ctr+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    Php memcached installation on Ubuntu linux - Open Terminal
  3. Installing Required pkg-config Ubuntu Package

    sudo apt-get install pkg-config

    If Got “User is Not in Sudoers file” then Look: Solution

  4. How-to Install libmemcached with Sasl support for Ubuntu:

    libmemcached+sasl Ubuntu Installation
  5. Download the PHP Pecl Memcached Module:

    Latest Pecl Memcached
  6. Installing Memcached extension:

    tar xvzf ~/Downloads/memcached*
    cd ~/Downloads/memcached*/
    phpize
    ./configure
    sudo make
    sudo make install
  7. Enabling the PHP Memcached Extension:

    sudo nano /etc/php5/apache2/php.ini

    Append

    on the Extensions Section:

    extension=memcached.so;

    Ctrl+x to Save & Exit.

  8. ReStart Apache to Load the Memcached Module:

    service apache2 restart
Share on Tumblr

Tags: , , , , , , , , , , , , , , , ,


Comments are disabled