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

posted @ 2016-05-12 12:30  林锅  阅读(1039)  评论(0编辑  收藏  举报