How to Install Bcmath Module

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



Leave a reply



Submit