Home  >  Article  >  Backend Development  >  How to modify php.ini with lnmp

How to modify php.ini with lnmp

藏色散人
藏色散人Original
2021-07-13 09:52:551744browse

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.

How to modify php.ini with lnmp

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn