用compose安装tp框架提示警告putenv
Posted xfstu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用compose安装tp框架提示警告putenv相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
Yii, CI, CakePHP, TP, Laravel, Symfony 等七大 PHP 框架的 Composer 安装方法