Just finished installing libevent (1.4.8), memcached (1.4.5), pears and libmemcached (0.40) on my lamp server (running PHP 5.2.10 and Centos 5.5 Final), and as far as I can tell, everything is installed correctly ( failed to resolve all errors during installation).
However, after the final update and installation of all updates ... when you try to do one of the following:
$test=memcache_connect('127.0.0.1', 11211); // OR $memcache = new Memcache; $memcache->connect('127.0.0.1', 11211)
I get errors:
Fatal error: Class 'Memcache' not found (or) Fatal error: call to undefined function memcache_connect ()
I (admittedly) am not very good at Linux at this point, although after installing this server completely from scratch, I will certainly advance in the learning process :) Any help would be greatly appreciated!

php caching memcached centos pear
Jonathan
source share