php.ini not respected

My global php.ini does not appear to be used, despite being reported as loaded. The following are screenshots showing that I can’t post screenshots, so plain text links are included. There is no other reasonable method of doing this.

https://postimg.org/image/qx1u91fmt/
https://postimg.org/image/wze2d9tgl/

  1. I have edited the correct file
  2. The file I have edited is the one php is claiming to use
  3. The settings are not respected.

I have restarted the server and the machine several times.
No other php.ini files exist in the server root (where phpinfo() is being called from)
Every php.ini file I could find on the machine was changed to reflect the same settings, regardless of how irrelevant its location.
No .htaccess files are in use that I could find.

If you have ini_set(‘display_errors’,1) or something similar in your php code itself, it will overwrite the ini file.

I would suggest searching for something like that in the code base and either remove it or set it to 0.

Also look for error_reporting as that will have the error display level set. I think from memory, if you’re using php 5.2 or less you need to set display_errors=0 and not Off. But don’t quote me on that.

Sponsor our Newsletter | Privacy Policy | Terms of Service