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.ini
Enter 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.