Home > Article > Backend Development > How to install bcmath on ubuntu php
How to install bcmath on ubuntu php: 1. Execute the "sudo apt-get install php-bcmath" command; 2. Find the php configuration file; 3. Add the "extension=bcmath.so" code.
The operating environment of this article: ubuntu 16.04 system, PHP7.0, Dell G3.
How to install bcmath in ubuntu php?
Ubuntu PHP install bcmath module
1.sudo apt-get install php-bcmath, after installation:
2 .Run: php -i | grep "php.ini", find the php configuration file:
Add the code: extension=bcmath.so
3 .Run php -m, if:
appears, it means that the bcmath module has been loaded multiple times, and the second step is not needed.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to install bcmath on ubuntu php. For more information, please follow other related articles on the PHP Chinese website!