安装laravel 遇到的一个坑

在安装php-spider之前必须安装Composer,安装Composer之后,通过php-spider的说明文档进行安装,出现以下错误:

Failed to download vdb/uri from source: The Process class relies on proc_open, which is not available on your PHP installation.Now trying to download from dist

出现以上问题的原因:由于安全性问题proc_open函数被禁用了。

解决办法:

进入php.ini文件,找到disable_function=,删除proc_open函数,即可。


在一个国外论坛上看到的一个解决方法:

链接:http://www.2by2host.com/articles/php-errors-faq/disabled_proc_open/

Function proc_open is disabled. What to do?

I see the "Warning: proc_open() has been disabled for security reasons" message on my site. What should I do? How can I fix this?

Solution for the "proc_open disabled" issue

In order to eliminate this error message you need to do ONE of the following things:

  • Remove the proc_open string from the disable_functions at php.ini* file
  • Ask your hosting provider to remove the string above if you don't have an access to the php.ini* file
  • Change hosting provider which allows the running of the proc_open function.

http://www.186886.top  
http://liulei.186886.top
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值