Home  >  Article  >  Backend Development  >  What to do if the php configuration file does not work

What to do if the php configuration file does not work

藏色散人
藏色散人Original
2021-09-02 09:21:572399browse

Solution to the problem that the php configuration file does not work: 1. Find and open the php-fpm.conf file; 2. Add attributes directly in "php-fpm.conf" by assigning values.

What to do if the php configuration file does not work

The operating environment of this article: Windows7 system, PHP5.4.22 version, Dell G3 computer

php configuration file does not work? Modifying php.ini doesn't work?

When I compiled and installed Zabbix, I modified php.ini. When starting php-fpm, I also specified the configuration file, and all services that should be restarted were restarted. Now, php -i | grep 'corresponding attribute' can also display the modified value.

But Zabbix's initialization check still reports an error:

What to do if the php configuration file does not work

Finally, add attributes directly to php-fpm.conf like assignment, and the effect is achieved, Zabbix inspection passed.

What to do if the php configuration file does not work

Add

to php-fpm.conf. Friends who have the same problem can try it to see if it can solve the problem.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if the php configuration file does not work. 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