---
title: "Install Memcached PHP Extension on Ubuntu"
source: "https://docs.nexcess.com/hosting/server-administration/linux/install-memcached-php-extension-on-ubuntu/"
description: "Installing the PHP Extension for Memcached is a simple process, this tutorial will show installation for Ubuntu operating systems. The installation is done thro…"
vertical: "Hosting"
date: "2024-03-04"
last_modified: "2026-07-29"
---

# 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](https://docs.nexcess.com/hosting/server-administration/linux/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
    ```
