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 updateWarning: 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 241Warning: 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 242Warning: 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: phpizeWarning: 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

 


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部