VPS侦探论坛

 找回密码
 注册
查看: 3206|回复: 2

lnmp1.6安装完成后安装swoole扩展出现错误

[复制链接]
发表于 2020-2-14 11:29:15 | 显示全部楼层 |阅读模式

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'


看这个报错是没有安装上phpize 嘛

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-2-14 14:41:06 | 显示全部楼层


需要将提示的几个函数从php.ini中的禁用函数列表中删除
使用源码安装的话需要先 /usr/local/php/bin/phpize ,过程可以参考官网文档:https://wiki.swoole.com/wiki/page/6.html,lnmp也支持pecl安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-2-14 15:03:15 | 显示全部楼层

licess 发表于 2020-2-14 14:41
需要将提示的几个函数从php.ini中的禁用函数列表中删除
使用源码安装的话需要先 /usr/local/php/bin/phpize ...

嗯谢谢 我解决了  
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 22:42 , Processed in 0.025699 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表