-
Notifications
You must be signed in to change notification settings - Fork 138
PHP Startup: Unable to load dynamic library 'redis.so' #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you use |
Hi @mbrodala thanks for your response, I use docker-compose up -d with this
If i run "docker-compose run php -d" it will give me error also:
|
This sounds like a loading issue since @moufmouf I can see the https://github.com/thecodingmachine/docker-images-php/blob/c4bce49e16b69a4121e2da54fb95a9e467902768/extensions/core/redis/install.sh Could this be the reason? |
I tried adding memcached to my Dockerfile and PHP_EXTENSION_MEMCACHED: 1 to docker-compose.yml which ended up showing more errors after a fresh docker-compose build php
Ive tried to find information about this issue, some say its a issue with Ubuntu 18.04 and php/redis. Some suggest to change order of loading extensions; Some other suggest installing the stuff you mentioned above @mbrodala |
Sorry for the delay. |
I love your work, no worries! Thank you very much, Ill wait patiently |
@beejaz I'm sorry but it is stil not working. I would love to use the phpredis extention in my laravel project running laravel horizon.
docker run --rm php artisan horizon
|
Ok, I'll check that! |
@moufmouf I tried to build my own image based on Ubuntu 20.04 and come to the same problem. After some googling I found out that there is a problem with the extension loading order. This is working
This image is using the So cloned this repo, emoved the Working! |
@moufmouf any update on this? Maybe the issue should be reopened? |
I just tried the latest v4 fpm slim image, got the same error also fyi @moufmouf :) |
@moufmouf Can you give us a quick note what do you think about this issue? I really love you images and this is a serious problem. |
@moufmouf Hi, sorry to disturb you, any updates here? |
I came across the same issue and got to the solution... So in case of @beejaz that would be:
And in case of @robjuz
I hope this will help you. |
This works for me now with the comment from above |
Expected Behavior
Enable redis support in PHP in thecodingmachine/php:7.4-v3-slim-fpm
Current Behavior
Container crashing on start or giving constant errors on load.
Possible Solution
As discussed in #200 maybe add delay or other order of loading
Steps to Reproduce (for bugs)
php/Dockerfile:
docker-compose.yml:
docker-compose up
When disabling PHP_EXTENSION_REDIS: 0 it starts:
On another container that has redis in ARG PHP_EXTENSIONS i get this error everytime i do something in console with php:
Context
Im trying to enable redis support in the image. If i turn off redis PHP_EXTENSION_REDIS: 0 i wont get any errors, but if I turn it on, it will either crash on start or if it runs, php will give error when trying to use redis for connection.
Similar problem discussed here #200 but i didn't find any solution.
Your Environment
The text was updated successfully, but these errors were encountered: