PHP Fatal error: Class 'Memcache' not found

Nick Le Mouton noodles at
Wed Apr 9 02:45:04 UTC 2008

You need to make sure you have installed the PHP module for memcache.

Instructions here:

Or the quick version is, run this from command line in linux:
pecl install memcache

Then add to your php.ini


-----Original Message-----
From: memcached-bounces at
[mailto:memcached-bounces at] On Behalf Of hce
Sent: Wednesday, 9 April 2008 2:38 p.m.
To: memcached at
Subject: PHP Fatal error: Class 'Memcache' not found


I installed lighttpd, php and memcached in FC6, and I have run the
script to start memcached:

nobody    6775  0.0  0.0  32848   816 ?        Ssl  11:26   0:00
memcached -d -p 11211 -u nobody -m 64 -c 1024 -P

But the php could not find the "extends Memcache" in an php file:

2008-04-09 12:21:45: (mod_fastcgi.c.2592) FastCGI-stderr: PHP Fatal
error:  Class 'Memcache' not found

What I was missing?

Thank you.


More information about the memcached mailing list