Skip to content

Mysqli with docker-compose #520

Answered by jaydrogers
beamsz asked this question in Q&A
Discussion options

You must be logged in to vote

You might need to do something like this:

FROM serversideup/php:8.4-fpm-nginx

# Switch to root so we can do root things
USER root

# Install the intl extension with root permissions
RUN install-php-extensions mysqli

# Drop back to our unprivileged user
USER www-data

Read more about how to add extensions here: https://serversideup.net/open-source/docker-php/docs/customizing-the-image/installing-additional-php-extensions

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jaydrogers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants