Help Docs Server Administration Linux Server Administration Install Memcached PHP Extension on Ubuntu

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.

  1. First, update your packages:
    apt-get update

  2. Then install the PHP Memcached extension and related packages:
    apt-get install php5-memcached

  3. The last step is to verify the installation. Use the following command to view information on the installed PHP modules:
    php -m | grep memcached

Was this article helpful?