thecodingmachine / docker-images-php

A set of PHP Docker images
MIT License
791 stars 140 forks source link

Unable to load dynamic library 'redis.so' still issue in v4 #251

Closed beejaz closed 3 years ago

beejaz commented 3 years ago

Hi,

I get no response in #213 which has been closed. Its still broken;

php_1    | PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
php_1    | /usr/local/bin/docker-entrypoint-as-root.sh: line 132: supercronic: command not found
php_1    | PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
php_1    | bash: line 2: syntax error near unexpected token `('
php_1    | bash: line 2: `Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0'

When using docker-compose up -d with build from Dockerfile:

ARG PHP_EXTENSIONS="apcu mysqli pdo_mysql redis intl"
FROM thecodingmachine/php:7.4-v4-slim-apache
bustersky commented 3 years ago

@beejaz check this out https://github.com/thecodingmachine/docker-images-php/issues/213#issuecomment-815307490

beejaz commented 3 years ago

Thanks, that method now works for me 👌