Install Memcached PHP Extension on Ubuntu
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