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

Cannot find any of the supported PHP image extensions! #179

Open
hirschnase opened this issue Nov 22, 2023 · 4 comments
Open

Cannot find any of the supported PHP image extensions! #179

hirschnase opened this issue Nov 22, 2023 · 4 comments
Assignees
Labels
needs-feedback Feedback from Reporter required

Comments

@hirschnase
Copy link

hirschnase commented Nov 22, 2023

Hello everyone,

I installed a fresh copy of the Docker image

martialblog/limesurvey:6-apache

an after loggin in into the admin web UI I tried to upload an image. I get an error message:

Cannot find any of the supported PHP image extensions!

I was able to fix that by installing GD and ImageMagick into the running container, but my question is: why are these essential PHP libraries missing in this Docker image? Am I the only one with this kind of problem?

That's what I did to make it work:

docker exec -ti -u root limesurvey6 apt update
docker exec -ti -u root limesurvey6 apt install libgd3 libgd-dev
docker exec -ti -u root limesurvey6 docker-php-ext-configure gd
docker exec -ti -u root limesurvey6 docker-php-ext-install -j5 gd
docker exec -ti -u root limesurvey6 apt install imagemagick
docker exec -ti -u root limesurvey6 apt install libmagickwand-dev
docker exec -ti -u root limesurvey6 pecl install imagick
docker exec -ti -u root limesurvey6 echo "extension=imagick.so" >>/usr/local/etc/php/php.ini

Thanks, Marc

@hirschnase
Copy link
Author

Btw, I had the exact same problems with the latest LS v3 Docker images...

@martialblog
Copy link
Owner

Hi, thanks for the hint. I'll have a look at it.

I'm not using it on a daily basis anymore, so I rely on users to help me find issues like that.

@martialblog martialblog added the bug Possible or confirmed Bug with Dockerfile label Nov 22, 2023
@martialblog martialblog self-assigned this Nov 22, 2023
@martialblog
Copy link
Owner

Hey, can you provide some more info on how to recreate this error? I did not see an error in the admin panel with a fresh build.

@martialblog martialblog added the needs-feedback Feedback from Reporter required label Nov 24, 2023
@hirschnase
Copy link
Author

Thanks for your feedback! I installed LS v6 and used an existing LS database structure from an old version. Just to make sure that this does not cause any trouble, I started another LS v6 docker container and connected it against a fresh, empty MySQL database.

This is the create script that I used:

docker run \
  --detach \
  --name limesurvey6-2 \
  --env DB_TYPE=mysql \
  --env DB_HOST=127.0.0.1 \
  --env DB_PORT=3308 \
  --env DB_NAME=limesurvey6_2 \
  --env DB_USERNAME=limesurvey6_2 \
  --env DB_PASSWORD=XYZ \
  --env DB_TABLE_PREFIX="lime6_" \
  --env DBENGINE="INNODB" \
  --env ADMIN_USER=admin \
  --env ADMIN_NAME="Limesurvey Administrator" \
  --env ADMIN_EMAIL=admins@domain.com \
  --env ADMIN_PASSWORD=changeme \
  martialblog/limesurvey:6-apache

The database structure gets bootstrapped as far as I can see, but I am not able to sign in into the admin interface. I get the error message "Internal database authentication method is not allowed for this user".

I then dropped the DB, created a new one and then ran the command

~/html/application/commands$ php console.php install admin changeme Admin admins@domain.com verbose

inside the docker container:

Connecting to database...
Using connection string mysql:host=127.0.0.1;port=3308;dbname=limesurvey6_2;
Creating tables...
Creating admin user...
Creating permissions ...
All done!

but I still can not log in with the admin account...

Any suggestions?

@martialblog martialblog removed the bug Possible or confirmed Bug with Dockerfile label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback Feedback from Reporter required
Projects
None yet
Development

No branches or pull requests

2 participants