To modify the php.ini configuration in the lnmp system, first use the find command to find the location of php.ini
find / -name php.ini
The search results are as follows：
Then use VI command to modify：
After the modification, it needs to be restarted to take effect. The restart here is not restarting nginx – you must pay attention.
If your lnmp is installed with php-cgi, restart php-cgi, if it is installed with php-fpm, restart php-fpm