您的位置 首页 php

linux下通过pecl方式安装php扩展

系统:Ubuntu 18.04 LTS 版本

  1. 安装pecl
 sudo -i   #切换到root
cd /www/server/php/72/bin  #我的php安装目录
wget  -O go-pear.php
php go-pear.php  
  1. 安装扩展
 pecl search key-word    #查找扩展
pecl install key-word   #安装扩展  
  1. 遇到问题1

在php.ini找到如下内容:

 disable_functions=  

去掉后面被禁用的popen()方法

  1. 遇到问题2
 configure: error: Cannot find php-config  

上面的报错处理方式:在/usr/bin下执行 ln -s /www/server/72/php/bin/php-config php-config即可。

文章来源:智云一二三科技

文章标题:linux下通过pecl方式安装php扩展

文章地址:https://www.zhihuclub.com/150212.shtml

关于作者: 智云科技

热门文章

网站地图