Memcached没有出现在phpinfo()

I've installed libmemcached and memcached pecl extension for php and for some reason it's not installing correctly? i've got memcached.so in /usr/lib64/php/ with the right permissions and libmemcache.so in /usr/local/lib/

Everything seemed to build correctly without error, and I restarted apache?

i also have the daemon installed.

I somehow easily got the Memcache class easily installed for php before, but I realized what i wanted was the Memcached (note the d) class. let me know if more info is needed!

EDIT: I previously had memcache (without the d) working in php so I know i was manipulating the correct php.ini!

EDIT 2: there WAS indeed an apache error!

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

I've solved it in centos5 using the yum installer instead of the pecl install memcached

THIS way --> yum install php-pecl-memcached

then, service httpd restart and it shows up in phpinfo()

I have the similar error few days ago. Instaling of new version(2.0) of memcached helped me.

yum -y install gcc-c++
wget http://launchpad.net/libmemcached/1.0/0.50/+download/libmemcached-0.50.tar.gz
tar xzf libmemcached-0.50.tar.gz 
cd libmemcached-0.50
./configure 
make 
make install
wget http://pecl.php.net/get/memcached-2.0.0b2.tgz
pecl install memcached-2.0.0b2.tgz
echo 'extension=memcached.so' > /etc/php.d/memcached.ini
service php-fpm restart
cd ..
rm -r libmemcached-0.50*
rm -r memcached-

add

extension=memcache.so

in php.ini then restart apache