How to install memcached on DirectAdmin / Debian 64-bit

yapadu

Verified User
Joined
Jun 26, 2009
Messages
37
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 "extension=memcache.so" to php.ini, that's it.

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

Working fine.
 

ozgurerdogan

Verified User
Joined
Apr 20, 2008
Messages
309
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:

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/memcache.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/memcache.so: 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.
 
Top