Home>Article>Backend Development> What should I do if the modification of the php.ini configuration file is invalid?
Solution to invalid modification of php.ini configuration file: First determine whether the modified [php.ini] file is a loaded file; then use the configuration of the [php-fpm.conf] file to overwrite it; finally restart nginx and [php-fpm] are enough.
Solution to invalid modification of php.ini configuration file:
1. Determine the modified php.ini file Whether it is a loaded file, use the command:
php -i | grep "php.ini"
2,php-fpm.conf
file configuration can override the configuration of the php.ini file.
For example, modify the configurationdisplay_errors=On
in the php.ini file. If the configuration under thephp-fpm.conf
file is:php_flag[display_errors] = off
The configuration will not take effect.
3. Remember to restartnginx
andphp-fpm.
Related learning recommendations:PHP programming from entry to proficiency
The above is the detailed content of What should I do if the modification of the php.ini configuration file is invalid?. For more information, please follow other related articles on the PHP Chinese website!