Home  >  Article  >  Backend Development  >  How to modify php.ini in Linux to take effect

How to modify php.ini in Linux to take effect

藏色散人
藏色散人Original
2021-07-05 11:40:572436browse

How to modify php.ini in Linux to take effect: first use CentOS yum to install php and related components; then modify the "/etc/php.ini" parameters; finally execute "service php-fpm restart".

How to modify php.ini in Linux to take effect

The operating environment of this article: linux5.9.8 system, PHP7.1 version, DELL G3 computer

How to modify php.ini in Linux to take effect?

Linux modification of php.ini parameters does not take effect?

Using CentOS yum to install php and related components, modifying /etc/php.ini parameters memory_limit and max_execution_time and restarting apache have not taken effect.

After checking that php is running under php-fpm, just execute

service php-fpm restart

.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to modify php.ini in Linux to take effect. 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