You shouldn't need to add extension=memcache.so to your php.ini file. The default php.ini on Ubuntu has an import statement to load extensions from /etc/php5/conf.d/*.ini
So after you run apt-get install php5-memcache make sure that you now have a memcache.ini file in /etc/php5/conf.d/ This files should contain the following: =======================[ CODE ]============================== ; uncomment the next line to enable the module extension=memcache.so [memcache] memcache.dbpath="/var/lib/memcache" memcache.maxreclevel=0 memcache.maxfiles=0 memcache.archivememlim=0 memcache.maxfilesize=0 memcache.maxratio=0 =======================[ /CODE ]============================== After that you should just need a /etc/init.d/apache2 restart phpinfo() in a php page should register a whole block of settings under the memcached header, or from a cli will contain this by default: =======================[ CODE ]============================== memcache memcache support => enabled Version => 3.0.1 Revision => $Revision: 1.83.2.24 $ Directive => Local Value => Master Value memcache.allow_failover => 1 => 1 memcache.chunk_size => 32768 => 32768 memcache.default_port => 11211 => 11211 memcache.hash_function => crc32 => crc32 memcache.hash_strategy => consistent => consistent memcache.max_failover_attempts => 20 => 20 memcache.protocol => ascii => ascii memcache.redundancy => 1 => 1 memcache.session_redundancy => 2 => 2 =======================[ /CODE ]============================== If none of this seems to work make sure that the libapache2-mod-php5 package is installed as php5-cli and/or php5-common maybe the only installed php main package as php5-common is pretty much the only dependence of php5-memcache On Sun, Jul 26, 2009 at 6:25 AM, euromark (munich)<[email protected]> wrote: > > hey guys > i have the same problem as described here: > http://groups.google.com/group/memcached/browse_thread/thread/d4b96a8d44d6db4d/e3c677d5ee6a1fc0 > > i did install memcache > apt-get install php5-memcache > > the phpinfo() lists: > mod_mem_cache (loaded modules) > > in the /etc/php5/apache2/php.ini > extension=memcache.so > added > > extension dir is untouched ("./") > > a2enmod -> module into mods-enabled > > checked the /etc/apache2/mods-enabled: > mem_cache.load > mem_cache.conf > both in it > > i restarted, force-reloaded... > > still: > Fatal error: Class 'Memcache' not found... > > what am i missing? > -- Nick Verbeck - NerdyNick ---------------------------------------------------- NerdyNick.com SkeletalDesign.com VivaLaOpenSource.com Coloco.ubuntu-rocks.org
