php.ini's error_reporting

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,367
Location
London UK
I understand E_NOTICE is enabled by default. However, some scripts do not declare variables, so error logs fill up tremendously. It has no use to the average end-user.

I have added ~E_NOTICE manually, but if you have php.ini=yes, it'll overwrite.



While I'm here. When you install just 1 php version, then decide to install 2 later on, the initial /usr/local/lib/php.ini is left there. Is this on purpose?
 
In my experience php.ini files are only overwritten (or created) for new minor (7.1.0, 7.2.0, 7.3.0) when you install them for the first time. But to answer your question:

In Custom HTTPd configs -> php.conf you can overwrite the log_level for any user with the php_admin_value setting. Is that what you are looking for?
 
Back
Top