Unable to Load memcached Li


#1

Hi,

On one of my servers I keep receiving the error: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20151012/memcached.so’ - /usr/lib/php/20151012/memcached.so: undefined symbol: php_msgpack_serialize in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20151012/memcached.so’ - /usr/lib/php/20151012/memcached.so: undefined symbol: php_msgpack_serialize in Unknown on line 0

This is on a server running 16.04 LTS. The server running 14.04 does not seem to have this issue. The fix suggested here did now work for me Receive error email from memcached


#2

If you are not using memcache, you should delete the file memcached.ini in /etc/php/(5.6 or 7.0)/modules/ It should fix the error because it will not try to load memcached anymore.

or try apt-get remove php-memcached apt-get purge php-memcached

and you should be able to reinstall it if needed apt-get install php-memcached


#3

Thanks @virtubox I have commented out the relevant lines in memecached.ini and memcache.ini files that were trying to load the extension.


#4