Php extension bcmath magento 2

Getting "Missing PHP Extension bcmath" error while doing Readiness check while doing Magento 2 setup. Even though, I have installed latest PHP bcmath - 7.0

Please help me to resolve this.

Php extension bcmath magento 2

asked Jun 10, 2018 at 12:03

Php extension bcmath magento 2

1

You have to install bcmath.

  1. sudo apt install php7.1-bcmath for 7.1 version

  2. sudo service apache2 restart

answered Aug 1, 2018 at 13:41

Php extension bcmath magento 2

PЯINCƎPЯINCƎ

11.4k3 gold badges21 silver badges76 bronze badges

1

You need to install bcmath extension for resolving this issue, Please try below commands :

For PHP5.6

sudo apt install php5.6-bcmath

For PHP7.0

sudo apt install php7.0-bcmath

For other PHP versions

sudo apt install php-bcmath

After Successfully install you need to restart/reload apache service

sudo service apache2 restart

answered Aug 28, 2018 at 11:22

Php extension bcmath magento 2

Ravi OzaRavi Oza

4284 silver badges9 bronze badges

To ensure that PHP bcmath - 7.0 enable at your system,Create a phpinfo.php at your magento root dir and write the code <?php phpinfo();?> and browse that file and check bcmatch enabled or not.

If it enabled then please goto var folder delete .setup_cronjob_status and .update_cronjob_status and disabled all magento cron and try again.

If bcmath is not enable then you should enable properly.

answered Jun 10, 2018 at 13:00

Php extension bcmath magento 2

Amit BeraAmit Bera

76k20 gold badges115 silver badges230 bronze badges

2

It works for me: I use PHP version 7.3.33. Follow this step you won't get an error:

  1. sudo apt install php7.3-bcmath
  2. sudo service apache2 restart

answered Sep 6 at 2:11

Php extension bcmath magento 2

Magento September 14, 2018August 22, 2019

During installation of magento in linux you have to install all extentions of  php. First you have to install phpmyadmin then in first step of magento installation you will face an error of php extentions. First you should check your php version by typing following command:

php -v

You will see like this result:

Php extension bcmath magento 2

Now to install all other extentions of php run the following command.

sudo apt-get install php7.0-fpm php7.0-mcrypt php7.0-curl php7.0-cli php7.0-mysql php7.0-gd php7.0-xsl php7.0-json php7.0-intl php-pear php7.0-dev php7.0-common php7.0-mbstring php7.0-zip php-soap libcurl3 curl -y

After this if you try to install magento you will face an error like this.

Php extension bcmath magento 2

To resolve this problem open your terminal and issue this command:

sudo apt install php7.0-bcmath

Now restart your apache server by typing following command:

service apache2 restart

Now go to your magento installation window and refresh this and the issue will be resolved.

Php extension bcmath magento 2

Published September 14, 2018August 22, 2019

Post navigation

What is Bcmath PHP extension?

BCMath Arbitrary Precision Mathematics ¶ This extension is an interface to the GNU implementation as a library of the Basic Calculator utility by Philip Nelson; hence the name. 24.

How to check bcmath PHP extension?

Type apt-cache search php in your terminal and it will list all PHP modules and extension which are compatible with your PHP version. Once an extension is installed using any of the above methods then you need to restart the apache server in order to load BCMath extension in PHP.

How to install ext bcmath?

How to install the bcmath extension in CentOS.
Install with the cli. You can install the bcmath extension with the command line via yum: yum install php-bcmath. ... .
Restart apache/httpd service. After installing the extension, you need to restart the apache service using the following command: service httpd restart..

How do I enable Bcmath?

Install CentOS SCLo RH repository: yum install centos-release-scl-rh..
Install rh-php71-php-bcmath rpm package: yum install rh-php71-php-bcmath..
Restart Apache. systemctl restart httpd.service..