Install php7.1-bcmath on Debian
Thanks to @apokryfos I was able to make it work by following instructions here : https://packages.sury.org/php/README.txt
apt-get -y install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update
How to install bcmath on a debian:jessie php5.6?
Simply create a Dockerfile that will build from the image you want (the one linked above) and add the line
RUN docker-php-ext-install bcmath
how to add bcmath extension in php 5.6 with php-fpm on Centos 7
I found what was the probem.
I had multiple installations of PHP
There was a php56 version installed too which was being used by the php-fpm. So I installed bcmath library using the command below and it then got applied to the correct PHP installation.
yum install php56-php-bcmath
restarted php-fpm and there was the problem solved.
Related Topics
Upgrading Laravel 5.5 to 5.6 Error
Php: Move_Uploaded_File() Failed to Open Stream: No Such File or Directory
PHP - Swiftmailer Using Starttls and Self Signed Certificates
How to Get the Absolute Path to the Public_HTML Folder
Why Is Object Oriented PHP with MySQLi Better Than the Procedural Approach
Changes to Upload_Max_Filesize in Ubuntu PHP.Ini Will Not Take Effect
Save Accents in MySQL Database
Newline Not Working in PHP Mail
Count How Often a Particular Value Appears in an Array
MySQL Insert ....On Duplicate Update - Adds One to the Autoincrement
How to Insert JSON Array into MySQL Database
Howto Generate JSON with Smarty
Woocommerce Cart Quantity Base Discount