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:
usr/local/php/etc/php.ini
Then use VI command to modify:
vi /usr/local/php/etc/php.ini
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