PHP安装插件方式

PHP安装插件方法主要有两种:

1、先安装相关的库,zlib、curl、xml等,然后在安装 php 时的 ./configure 中设置 --with-xxx(你需要的插件),三部曲安装即可。

2、有一些插件在 php 的源码包里就有(/path/php/ext),有一些需要下载:

  cd xxx

  phpize (指明你的安装路径)

  ./configure --with-php-config=/usr/local/php/bin/php-config --with-xxx(有些需要其他 with)

  make

  make install

原文地址:https://www.cnblogs.com/linguoguo/p/5409027.html