Introduction to how to add php modules

高洛峰
Release: 2023-03-06 20:32:02
Original
1368 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!