Home > Article > Backend Development > What should I do if the modification of php.ini does not take effect?
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.
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!