My notes are quite old. Make sure you get the latest version from google codeAh, so it sounds like there are two installs - one of the program and one of the php part. I think maybe I only did the second part - I will go through your example and tests and see what is up.
Thanks!
My yum can't find anything for memcache / memcached, which is why I had to install it all manually.If your on centos then
Code:yum install memcached php-pecl-memcache
Should do it all for you
# sudo yum list memcached
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* rpmforge: www.mirrorservice.org
* updates: mirror.sov.uk.goscomb.net
Excluding Packages in global exclude list
Finished
Error: No matching Packages to list
My yum can't find anything for memcache / memcached, which is why I had to install it all manually.
Code:# sudo yum list memcached Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.sov.uk.goscomb.net * extras: mirror.sov.uk.goscomb.net * rpmforge: www.mirrorservice.org * updates: mirror.sov.uk.goscomb.net Excluding Packages in global exclude list Finished Error: No matching Packages to list
# yum search memcache
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
============================ N/S Matched: memcache =============================
libmemcached.i686 : Client library and command line tools for memcached server
libmemcached.x86_64 : Client library and command line tools for memcached server
libmemcached-devel.i686 : Header files and development libraries for
: libmemcached
libmemcached-devel.x86_64 : Header files and development libraries for
: libmemcached
memcached-devel.i686 : Files needed for development using memcached protocol
memcached-devel.x86_64 : Files needed for development using memcached protocol
perl-Cache-Memcached.noarch : Perl client for memcached
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
python-memcached.noarch : A Python memcached client library
memcached.x86_64 : High Performance, Distributed Memory Object Cache
Name and summary matches only, use "search all" for everything.
============================== Matched: memcache ===============================
libmemcached.i386 : Client library and command line tools for memcached server
libmemcached.x86_64 : Client library and command line tools for memcached server
libmemcached-devel.i386 : Header files and development libraries for
: libmemcached
libmemcached-devel.x86_64 : Header files and development libraries for
: libmemcached
memcached.x86_64 : High Performance, Distributed Memory Object Cache
memcached-devel.x86_64 : Files needed for development using memcached protocol
memcached-devel.i386 : Files needed for development using memcached protocol
perl-Cache-Memcached.noarch : Perl client for memcached
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
python-memcached.noarch : A Python memcached client library
python-shove.noarch : Common object storage frontend
redis.x86_64 : A persistent key-value database
rubygem-moneta.noarch : A unified interface to key/value stores
CentOS5 for me on both servers.Hmm, centos 5 or 6?
-rw-r--r-- 1 root root 1.9K Feb 25 08:20 CentOS-Base.repo
-rw-r--r-- 1 root root 631 Feb 25 08:20 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 626 Feb 25 08:20 CentOS-Media.repo
-rw-r--r-- 1 root root 6.0K Feb 25 08:20 CentOS-Vault.repo
-rw-r--r-- 1 root root 267 Dec 16 2009 Percona.repo
-rw-r--r-- 1 root root 739 Nov 13 2010 mirrors-rpmforge
-rw-r--r-- 1 root root 717 Nov 13 2010 mirrors-rpmforge-extras
-rw-r--r-- 1 root root 728 Nov 13 2010 mirrors-rpmforge-testing
-rw-r--r-- 1 root root 1.1K Nov 13 2010 rpmforge.repo
Finished
======================================================== Matched: memcache =========================================================
libmemcache.x86_64 : A client library for memcached
libmemcache-devel.x86_64 : Header files, libraries and development documentation for libmemcache
lighttpd.x86_64 : Lightning fast webserver with light system requirements
python-memcached.noarch : Python interface to the memcached memory cache daemon
python-openid.noarch : Python OpenID libraries
sudo yum search --enablerepo=rpmforge-extras memcached
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* rpmforge: www.mirrorservice.org
* rpmforge-extras: www.mirrorservice.org
* updates: mirror.sov.uk.goscomb.net
rpmforge-extras | 1.9 kB 00:00
rpmforge-extras/primary_db | 181 kB 00:00
Excluding Packages in global exclude list
Finished
======================================================== Matched: memcached ========================================================
libmemcache.x86_64 : A client library for memcached
memcached.x86_64 : Distributed memory object caching system
memcached-devel.x86_64 : Header files for memcached
python-memcached.noarch : Python interface to the memcached memory cache daemon
python-openid.noarch : Python OpenID libraries
Mine has been allocated 32MB, and it's only using 2MB of that
I have mine set to 1GB and am currently using 314MB - it builds slowly so let it run for a few weeks and then check the size.
# yum --enablerepo=axivo install memcached php-pecl-memcached
These are also two similar PHP extensions for Memcache: http://pecl.php.net/package-search.php?pkg_name=memcache&bool=AND&submit=Search. Zend_Cache_Backend_Memcached requires the memcache extension.Question, I see memcache and memcached mixed together in the above instructions - are they both required? I was under the impression that they were 2 different things caching systems.
We use essential cookies to make this site work, and optional cookies to enhance your experience.