码迷,mamicode.com
首页 > 其他好文 > 详细

用compose安装tp框架提示警告putenv

时间:2020-02-24 00:43:34      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:生产环境   line   proc   RoCE   putenv   led   war   生产   isa   

PHP Warning:  putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php on line 160

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

Warning: putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer on line 57

出现这样的错误是因为禁用了putenv()这个函数,新手(比如我)在安装时就遇到这个问题,一般只是Linux宝塔的环境会提示,只需要到PHP里把禁用的这个函数给删除就行了,生产环境的话安装完后再加上,该函数是用来设置环境变量的

用compose安装tp框架提示警告putenv

标签:生产环境   line   proc   RoCE   putenv   led   war   生产   isa   

原文地址:https://www.cnblogs.com/xfstu/p/12354933.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!