Home > Article > Backend Development > How to modify php.ini with lnmp
Lnmp method to modify php.ini: First use the find command to find the location of php.ini; then modify it through the "vi /usr/local/php/etc/php.ini" command.
The operating environment of this article: linux5.9.8 system, PHP7.1 version, DELL G3 computer
lnmpHow to modify php.ini ?
Lnmp modifies the php.ini configuration
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 the VI command to modify:
vi /usr/local/php/etc/php.ini
After modification, you need to restart to take effect. The restart here does not mean restarting nginx-be sure to pay attention.
If your lnmp is installed with php-cgi, restart php-cgi, if it is installed with php-fpm, restart php-fpm
Recommended learning: "PHP Video Tutorial 》
The above is the detailed content of How to modify php.ini with lnmp. For more information, please follow other related articles on the PHP Chinese website!