Loading... 如以下错误 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 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去掉即可。 ———————————————— 版权声明:本文为CSDN博主「南易武痴」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/qq_38494372/article/details/96602329 最后修改:2022 年 08 月 22 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏