Please note that this article is considered legacy documentation because Ubuntu 12.04 has reached its end-of-life support.
- These instructions are intended specifically for installing the Memcached PHP Extension on a single Ubuntu 12.04 LTS node.
- I’ll be working from a Liquid Web Core Managed Ubuntu 12.04 LTS server, and I’ll be logged in as root.
- Follow our tutorial on How to Install Memcached on Ubuntu 12.04 LTS prior to this KB!
Step #1: Install the Memcached PHP ExtensionAs a matter of best practice we’ll update our packages:
apt-get updateThen installing PHP Memcached extension and related packages is now as simple as running just one command::
apt-get install php5-memcached
Step #2: Verify InstallationUse the following command to view information on the installed PHP modules:
php -m | grep memcachedYou can also verify the configuration of PHP with phpinfo. Follow our tutorial: How To: Check PHP Modules With phpinfo