How to modify php.ini with lnmp

藏色散人
Release: 2023-03-11 13:18:02
Original
1709 people have browsed it

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
Copy after login

The search results are as follows:

usr/local/php/etc/php.ini
Copy after login

Then use the VI command to modify:

vi /usr/local/php/etc/php.ini
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!