Home  >  Article  >  Development Tools  >  Solve the problem of Warning: putenv() when installing composer install using LNMP

Solve the problem of Warning: putenv() when installing composer install using LNMP

藏色散人
藏色散人forward
2021-05-07 09:58:002597browse

The following tutorial column of composer will introduce to you the Warning: putenv() problem when installing composer install with LNMP. I hope it will be helpful to friends in need!

Warning: putenv() appears when LNMP installs composer install

layout: post<br>title: Warning: putenv() appears when LNMP installs composer install Question disabled for security reasons in…<br>date: 2020-03-29

tags: ["Laravel"]

Warning: putenv( ) has been disabled for security reasons in...

Cause: LNMP has disabled some dangerous PHP functions

Solution:

Edit PHP in the lnmp environment Configuration file:

vi /usr/local/php/etc/php.iniEnter the editing state

Enter /, enter the search mode, and find disable_functions

Look for the disable_functions string and delete the putenv behind it

If the pagoda panel is installed

Directly find the environment settings, select the disabled function in php, and delete it directly.

The above is the detailed content of Solve the problem of Warning: putenv() when installing composer install using LNMP. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete