Home  >  Article  >  Backend Development  >  How to install bcmath on ubuntu php

How to install bcmath on ubuntu php

藏色散人
藏色散人Original
2021-11-25 10:16:512373browse

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.

How to install bcmath on ubuntu php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn