The PHP function bcdiv is not available by default. How do I enable that in PHP configuration?

  1. Install module bcmath

    sudo apt-get install php-bcmath

(note: on ubuntu 16.04^ with PHP 7.0^ use php7.0-bcmath package instead)

  1. Restart apache service eventually

    sudo service apache2 restart
| improve this answer | |
  • The answer should note that this wont work on php 7.0. At least on my machine it didnt work. Next asnwer - worked. – Denis Matafonov Feb 7 '18 at 22:34

Install module bcmath in PHP 7.0, you should try:

sudo apt-get install php7.0-bcmath

And restart php engine or apache

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.