composr安装软件失败的解决方法

Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/bin/composer on line 57

Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/bin/composer on line 57

原因

这个问题的原因主要是php为了安全问题,禁止putenv()这个函数。

解决方法

修改php的配置文件,php.ini
找到disable_function这个地方,把putenv去掉即可。

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2019年6月18日
下一篇 2019年6月18日

相关推荐