Linux Mint PHP Memcached Extension Installation
Hi! The Tutorial shows you Step-by-Step How to Install the Latest PHP memcached Extension with Sasl support from source for Linux Mint 17.1 Qiana 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.
-
How to Install/Enable PECL Command on Mint Linux
-
Open a Shell Terminal Emulator Session
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
Installing Required pkg-config Mint Package.
sudo apt-get install pkg-config
If Got “User is Not in Sudoers file” then see: How to Enable sudo
-
How to Install libmemcached with Sasl support for Mint
-
Download the PHP Pecl Memcached Module
-
Installing Memcached extension:
tar xvzf ~/Downloads/memcached*
cd ~/Downloads/memcached*/
phpize
./configure
make
sudo make install
-
Enabling the PHP Memcached Extension:
sudo nano /etc/php5/apache2/php.ini
Append.
on the Extensions Section:
/nextension=memcached.so;
Ctrl+x to Save & Exit.
-
ReStart Apache to Load the Memcached Module:
service apache2 restart