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

藏色散人
Release: 2021-05-07 09:58:00
forward
2591 people have browsed it

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!

Related labels:
php
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template