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
Advertisement
Answer
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()