PHP Warning: putenv() has been disabled for security reasons in phar:_风口上的猪博客-CSDN博客

来源: PHP Warning: putenv() has been disabled for security reasons in phar:_风口上的猪博客-CSDN博客

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

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去掉即可。

赞(0) 打赏
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏