Skip to content
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

Base php:7.4 not have mongodb plugin #68

Closed
LY1806620741 opened this issue Dec 5, 2019 · 4 comments
Closed

Base php:7.4 not have mongodb plugin #68

LY1806620741 opened this issue Dec 5, 2019 · 4 comments

Comments

@LY1806620741
Copy link

I use root exec container shell, docker exec -it adminer -u root sh
and pecl install mongodb then it say Cannot find autoconf.
this image delete apt-get, how I install mongodb.so support.

@TimWolla
Copy link
Owner

TimWolla commented Dec 5, 2019

The image is based on Alpine, thus it doesn't include apt. However I realize that due to recent changes in the base image installation of pecl extensions is non-trivial.

The following steps appear to work for me (i.e. they compile the extension, I don't know whether it will actually work afterwards):

apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS
pecl install mongodb
docker-php-ext-enable mongodb
apk del --no-network .phpize-deps-configure

@LY1806620741
Copy link
Author

LY1806620741 commented Dec 6, 2019

Thanks, You fill in the void of my knowledge. But I find another problem is that After enter the host、user、pass、dbname , then adminer tell me "Database does not support password". Maybe something was wrong. I try to solve it by myself on freetime.

@TimWolla
Copy link
Owner

TimWolla commented Dec 6, 2019

@LY1806620741 See this comment + the ones after that: #16 (comment)

@LY1806620741
Copy link
Author

I tried, but at last I gave up.
I get adminer.php in the docker container. Finded line 1188 check password not null. Finded mongodb-driver-manager on https://www.php.net/manual/en/mongodb-driver-manager.construct.php. Then I think if I remove the check, maybe it can work. Before I put it into action, I found out https://sourceforge.net/p/adminer/bugs-and-features/635/, so i use Mongo Express now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants