Home > Article > Backend Development > Introduction to how to add php modules
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!