Home  >  Article  >  Backend Development  >  Introduction to how to add php modules

Introduction to how to add php modules

高洛峰
高洛峰Original
2017-03-22 17:24:391383browse

bcmath is an example:

Enter the module’s folder, /home/oldboy/tools/php-5.5.38/ext/bcmath

Execute: /application/php-5.5.38/bin/phpize

./configure --with-php-config=/application/php-5.5.38/bin/php-config

make && make install

Modify the php.ini file (find the location of the php.ini file in phpinfo)

extension_ dir=/application/php-5.5.38/lib/php/extensions/no-debug-non-zts-20121212

extension=bcmath.so

Restart php-fpm

The above is the detailed content of Introduction to how to add php modules. 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