What should I do if modifying the php.ini configuration file is invalid?

coldplay.xixi
Release: 2023-03-02 16:10:02
Original
3625 people have browsed it

The solution to the invalid modification of the php.ini configuration file: first determine whether the modified [php.ini] file is a loaded file; then modify the file configuration to [display_errors=On]; finally restart nginx and [php -fpm] That’s it.

What should I do if modifying the php.ini configuration file is invalid?

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

2,php-fpm.conffile configuration can override the configuration of the php.ini file.

For example, modify the configurationdisplay_errors=Onin the php.ini file. If the configuration under the php-fpm.conf file: php_flag[display_errors] = off, the configuration will not take effect.

3. Remember to restart nginx and php-fpm

Related learning recommendations:PHP programming from entry to proficiency

The above is the detailed content of What should I do if modifying the php.ini configuration file is invalid?. 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
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!