解决PHP Warning: putenv() has been disabled for security reasons in phar:

Report an error when using composer, because php disables the putenv() function

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

Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 97
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/src/Composer/Util/Platform.php on line 78

Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/src/Composer/Util/Platform.php on line 78

if using pagoda

Just go to the php configuration of the pagoda and delete the disabled function putenv

Modify php.ini configuration

In order to avoid modification errors! Please back up the original file before modifying it putenv!
Modify the configuration file of php, php.ini
find the place of disable_function, and remove putenv.

Guess you like

Origin blog.csdn.net/taoshihan/article/details/131843496