Install Memcached PHP Extension on Ubuntu
Installing the PHP Extension for Memcached is a simple process, this tutorial will show installation for Ubuntu operating systems. The installation is done through the command line using apt-get.
The following instructions are specifically for installing the Memcached PHP Extension on a single Ubuntu node. If you have not yet installed Memcached on Ubuntu, please see our article Installing Memcached on Ubuntu. The extension will not work without it installed first.
- First, update your packages:
apt-get update
- Then install the PHP Memcached extension and related packages:
apt-get install php5-memcached
- The last step is to verify the installation. Use the following command to view information on the installed PHP modules:
php -m | grep memcached