Mysqli with docker-compose #520
-
Hello, `services: php: My php.ini is only this here inside.
Thanks for help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 |
Beta Was this translation helpful? Give feedback.
-
Thanks, that works for me! |
Beta Was this translation helpful? Give feedback.
You might need to do something like this:
Read more about how to add extensions here: https://serversideup.net/open-source/docker-php/docs/customizing-the-image/installing-additional-php-extensions