Skip to content

Redis extension does not work without igbinary #255

Closed

Description

@ikulis

As follow up from #213 , Kudos to #213 (comment)

Expected Behavior

Image should work by just adding redis extension without you need to add igbinary.

Current Behavior

Starting image fails:

$ docker-compose up web
Recreating redis-breaks_web_1 ... done
Attaching to redis-breaks_web_1
web_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
web_1  | /usr/local/bin/docker-entrypoint-as-root.sh: line 129: supercronic: command not found
web_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
web_1  | bash: line 2: syntax error near unexpected token `('
web_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'
redis-breaks_web_1 exited with code 2

Possible Solution

  • Somehow autoenable igbinary extension after redis extension is enabled.
  • add some disclaimer in Readme.md that igbinary extension is required

Steps to Reproduce (for bugs)

  1. Make Dockerfile
# Required default PHP extensions
ARG PHP_EXTENSIONS="redis"

# Image for the development
FROM thecodingmachine/php:7.4-v3-slim-apache
  1. Make docker-compose.yml
version: '3.4'

services:
  web:
    build: ./
    environment:
      TEMPLATE_PHP_INI: "development"
      PHP_INI_ERROR_REPORTING: "E_ERROR"
      PHP_EXTENSION_XDEBUG: "0"
      PHP_INI_XDEBUG__REMOTE_AUTOSTART: "0"
      TZ: "Europe/Amsterdam"
      APACHE_DOCUMENT_ROOT: "public"
    volumes:
      - "./:/var/www/html/"
  1. docker-compose build
  2. docker-compose up web

Activity

  1. stale commented on Nov 9, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.

  2. added
    stale
    on Nov 9, 2021
  3. stale commented on Nov 16, 2021

    @stale

    This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions