docker-images-php icon indicating copy to clipboard operation
docker-images-php copied to clipboard

Memcached extension is not working in php8 images

Open VENTOURA opened this issue 2 years ago • 1 comments

I am trying to use php8 images but looks like memcashed extension is not working, I am getting this error: PHP Warning: PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20200930/memcached.so (/usr/lib/php/20200930/memcached.so: undefined symbol: php_msgpack_serialize), /usr/lib/php/20200930/memcached.so.so (/usr/lib/php/20200930/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP: syntax error, unexpected '(' in /etc/php/8.0/cli/conf.d/generated_conf.ini on line 2

I tried several ways to configure the extension in my docker-compose file, but nothing changed. Anyone facing the same issue or knows how to solve it? Screenshot 2022-08-29 at 14 43 18 Screenshot 2022-08-29 at 14 43 38

VENTOURA avatar Aug 29 '22 12:08 VENTOURA

@VENTOURA Late answer, but I just stumble on it myself, and found the solution here : https://stackoverflow.com/questions/22927424/php-memcached-php-msgpack-serialize-in-unknown-on-line-0

=> Just add the msgpack extension, and everything should be fine.

McLone avatar Mar 13 '23 08:03 McLone