php新加扩展模块

记录下在已经编译安装的PHP上面增加扩展模块,下面以安装mbstring.so为例

1、进入PHP源码文件中的mbstring文件夹,一般都是在ext目录

cd php-5.5.29/ext/mbstring/

2、找到phpize文件执行,如不知道安装在哪里,可以使用find命令查找

3、执行完phpize后会在mbstring目录生成configure文件

4、执行./configure &&make &&make install

5、编辑php.ini文件

增加extension=mbstring.so

6、重启Apache

原文地址:https://www.cnblogs.com/tiantianhappy/p/9039666.html