美文网首页
Laravel5.7 composer安装扩展错误

Laravel5.7 composer安装扩展错误

作者: 倚窗听雨211 | 来源:发表于2019-01-16 16:17 被阅读0次

问题:

在部署到正式环境(Nginx+PHP7.1)时,使用composer.json安装扩展时,出现错误。

The Process class relies on proc_open, which is not available on your PHP installation.

根据提示也能看出,这里是proc_open方法找不到。

解决办法:

打开php配置文件,搜索disable_functions,将后面的proc_open去掉就行。

注意:同样的,proc_get_status也需要去掉。另,请确保PHP的fileinfo扩展开启

相关文章

网友评论

      本文标题:Laravel5.7 composer安装扩展错误

      本文链接:https://www.haomeiwen.com/subject/zaemdqtx.html