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

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

PHP中文网
Release: 2023-03-01 08:08:02
Original
2732 people have browsed it

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

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 Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template