PHP memcached Fatal error: Class 'Memcache' not found

Posted by jpfuentes2 on Stack Overflow See other posts from Stack Overflow or by jpfuentes2
Published on 2010-04-17T16:08:07Z Indexed on 2010/04/17 16:13 UTC
Read the original article Hit count: 2062

Filed under:
|
|

I've pasted the example from php.net for using memcached in php and I'm getting:

Fatal error: Class 'Memcache' not found

I have this in my php.ini:

[memcache]
memcache.hash_strategy = "consistent"
memcache.max_failover_attemps = 100
memcache.allow_failover = 1

Here's info from php -i and php -m respectively:

php -i | grep -i memcache
memcached
memcached support => enabled
libmemcached version => 0.37
Registered save handlers => files user sqlite memcached

php -m | grep -i memcache
memcached

So php seems to have loaded memcached as a module, and php info says that it is loaded and is using v .37. I have not tried yet via apache, I've only been using this through cli right now. Any thoughts?

© Stack Overflow or respective owner

Related posts about php

Related posts about memcached