Swoole安装popen()找不到

报错

[root@192 swoole]# pecl install swoole
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update

Warning: popen() has been disabled for security reasons in OS/Guess.php on line 241
PHP Warning:  popen() has been disabled for security reasons in /usr/local/php/lib/php/OS/Guess.php on line 241

Warning: fgets() expects parameter 1 to be resource, null given in OS/Guess.php on line 242
PHP Warning:  fgets() expects parameter 1 to be resource, null given in /usr/local/php/lib/php/OS/Guess.php on line 242

Warning: pclose() expects parameter 1 to be resource, null given in OS/Guess.php on line 251
PHP Warning:  pclose() expects parameter 1 to be resource, null given in /usr/local/php/lib/php/OS/Guess.php on line 251
downloading swoole-4.4.15.tgz ...
Starting to download swoole-4.4.15.tgz (1,454,897 bytes)
................................................................................................................................................................................................................................................................................................done: 1,454,897 bytes
374 source files, building
running: phpize

Warning: popen() has been disabled for security reasons in PEAR/Builder.php on line 467
PHP Warning:  popen() has been disabled for security reasons in /usr/local/php/lib/php/PEAR/Builder.php on line 467
ERROR: failed to run `phpize'

方法

在php.ini里将popen函数禁用了,这里总结一下,以免以后再遇到后手足无措
解决办法:找到php.ini 打开后找到disable_functions把popen去除  
disable_functions是禁用的函数
然后重启php-fpm

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值