I installed memcache in the following way:
1) yum install memcached 2) yum install php-pecl-memcached 3) Also enabled the 'memcached.so' in php.ini
I tested the memcached in the follwing way:
$mc = new Memcache; $mc->addServer('localhost', 11211); echo "Server's version: " . $mc->getVersion() ;
But it generates the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/memcached.so' - /usr/lib64/php/modules/memcached.so: undefined symbol: php_json_encode in Unknown on line 0 PHP Fatal error: Class 'Memcache' not found in /root/memcacheTest.php on line 2
Thank u.