資安

Linux中composer install執行報錯Warning: putenv() has been disabled for security reasons in 解決問題

Linux中composer install執行報錯Warning: putenv() has been disabled for security reasons in 解決問題

按提示是去掉禁用函數 putenv() ,但是去除了也無法成功。

除了這個函數一般還會提示:

 proc_open這個函數,也可以一併去。

依然如此提示是為啥,

踩坑,安裝了寶塔 7.3 和7.2,修改了7.3 哪怕你的程序對應選擇的是7.3 ,7.2也必須修改才會生效。

只要其他版本php在啟動中就會影響,此問題蛋疼耗費幾個小時。
3.png

因為這是非常蛋疼的問題,必須記一下,太坑浪費時間。

Leave a Reply

Your email address will not be published. Required fields are marked *