Hello,
I need to activate PHP’s bcmath extension to require moneyphp/money.
Which one of the many php.ini files in the official docker image is the one, I can activate it?
Hello,
I need to activate PHP’s bcmath extension to require moneyphp/money.
Which one of the many php.ini files in the official docker image is the one, I can activate it?
Hi @maki3000,
In the container, use the command docker-php-ext-install bcmath
to install the extension. When it finishes, use service apache2 restart
to restart Apache:
root@6f18302a4160:/var/www/html# docker-php-ext-install bcmath
Configuring for:
PHP Api Version: 20210902
...
root@d5dc2261f116:/var/www/html# service apache2 restart
Restarting Apache httpd web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
(ignore the Apache warning).
Let me know if you still need help.