Home >Backend Development >PHP Problem >What should I do if the modification of php.ini does not take effect?

What should I do if the modification of php.ini does not take effect?

藏色散人
藏色散人Original
2021-09-10 09:20:043103browse

Solution to the problem that php.ini modification does not take effect: 1. Restart php-fpm; 2. Check "phpinfo();"; 3. Check and kill "php-fpm"; 4. Restart loading php .ini is enough.

What should I do if the modification of php.ini does not take effect?

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

After modification of php.ini What should I do if it doesn’t take effect?

The problem that modification of php.ini does not take effect

You need to restart php-fpm to modify php.ini. I won’t say much about this.

But it still doesn’t work, check phpinfo();

Isn’t it loaded? I don’t know why, but there is obviously a php.ini file.

After trying

check and kill php-fpm

ps aux | grep php-fpm
kill #pid

restart loading php.ini

/www/server/php/80/sbin/php-fpm -c /www/server/php/80/etc/php.ini

Effective

Recommended study: "PHP Video Tutorial"

The above is the detailed content of What should I do if the modification of php.ini does not 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