In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge about how to solve the problem that the configuration file php.ini does not take effect. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.
The reason why the configuration file "php.ini" does not take effect: 1, after modifying the configuration file, there is no reload of the "php.ini" configuration file, just restart the service and reload the configuration file; 2, there are multiple "php.ini" configuration files; 3, the configuration in the "php.ini" file is overwritten by the configuration in other files.
Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
The modified configuration file php.ini does not take effect for the following reasons:
1. After modifying the php.ini configuration file, the php.ini configuration file is not reloaded.
2. There are multiple php.ini configuration files
3. The configuration in php.ini is overwritten by the configuration in other files
Troubleshooting:
1, after modifying the configuration, reload the php.ini file and print out phpinfo (); check which configuration file is read and make sure that the modified configuration file is correct. As shown below:
2. Search for your modified configuration in the printed phpinfo ();, and pay attention to Local Value (local variable) and Master Value (main variable). Local Value will override the value of Master Value, Master Value is the value of your php.ini configuration item, and Local Value may be the value set in the code, as shown below, eg:ini_set ('display_errors',true).
In addition, Baidu to say Apache configuration file can rewrite php.ini settings, may be in conf/httpd.conf, may also be in conf.d/**.conf, generally in conf.d/php.conf, but in the windows did not find the conf.d file, may be in the linux version of apache there is a conf.d file.
3. In the linux environment, php5.3.3 php-fpm has not been included in php before, and the configuration php is basically in php.ini. Php5.3.3 and later, in addition to php.ini configuration, it can also be configured in php-fpm.conf, and php-fpm.conf priority is higher than php.ini.
Check the php-fpm.conf configuration file, or whether the configuration in the php-fpm.d/.conf file overrides the configuration in php.ini. The configuration example of php-fpm is as follows:
Php_ value [session. Save _ handler] = redis php_ value [session. Save _ path] = "tcp://***.***:6379?auth=***" above is all the contents of the article "how to solve the problem if the configuration file php.ini is not in effect". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.