Home  >  Article  >  Backend Development  >  Why has php.ini been modified but phpinfo() has not changed?

Why has php.ini been modified but phpinfo() has not changed?

PHP中文网
PHP中文网Original
2017-03-18 15:18:292656browse

Why is there no change after modifying php.ini but phpinfo()

I checked the address is /etc/php5/apache2/php.ini, modified and saved it, and then restarted apache, but it still didn’t work. This is Why? ?

Confirm whether the php.ini loaded by your php is the php.ini you modified.

There is a line in the page using phpinfo() that explains the location of the currently loaded php.ini file. Please check it accordingly. , it is most likely that you changed the php.ini file in another directory

Why has php.ini been modified but phpinfo() has not changed?

The above is why php.ini was modified but phpinfo() did not change. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!

Related articles:

How to block the phpinfo() function

Use PHPINFO to implement the PHP configuration statistics process

The difference between Local Value (local variable) and Master Value (main variable) in phpinfo

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