How to install memcached on DirectAdmin / Debian 64-bit


Verified User
Jun 26, 2009
I did some searching on this forum looking for info on how to (easily) install memcache. After piecing a few things together I came up with just a few commands and got it working on my system. I have two servers and it worked on both, hopefully this helps someone else.

Here is what I was running at the time:

OS: Debian 6.0 64-bit
DirectAdmin: 1.42.1
PHP: 5.3.19

I logged in as root and did the following:

* apt-get install memcached

* apt-get install autoconf

* pecl install memcache

Added "" to php.ini, that's it.

Restarted Apache, using /etc/init.d/httpd restart

Working fine.


Verified User
Apr 20, 2008
I am using centos 64bit 6.4 and Custombuild 2, php 5.4.14 with nginx and followed your insf. but when I php -v, I get:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/ cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.14 (cli) (built: May  8 2013 23:55:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
Because it is not there.