I’m confused about this settings. What are the differences?
Here, I’m talking about the basic idea behind php error reporting. This is a PHP function which defines how PHP report errors to server error logs. The error_reporting() function sets the error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of your script.
Did you ever face this problem on your cPanel account? The disk space increasing inadvertently without any reasons. Mostly this occurs due to the high usage on your website error logs, php related errors causing this issue. Here we need to find a permanent solution for this issue. The high disk usage is just because of large error logs on the account.
E_ALL : Everything E_ALL & ~E_NOTICE : Report all errors except E_NOTICE ~E_ALL : Stop all
E_NOTICE :: This will be helpful to analyze programming related errors. Please check this for more details >> error_reporting <<
So you can change the error reporting from E_ALL to other. Cool!!
How can I change this from cPanel account?
If your server has CloudLinux and installed PHP selector you can set this settings from the cPanel itself. Please follow the steps pasted below:
1. Log into cPanel.
2. Move to “cPanel >> Software and Services >> Select PHP Version.”
3. Click on “Switch To PHP Settings.”
4. You can set/change error_reporting from there.
If it’s not listed there, please contact your host. If the server does not support Cloud Linux and PHP selector, you can set this from the PHP configuration or by adding php.ini file.
More about Cloud Linux technology
CloudLinux is a Linux based Operating system especially used in a shared environment which isolates each user in its own light weight virtualized environemnts (LVE) which consumes predefined amount of resources allocated for each user. That is, each user will be in a caged environment.
The resource usage of any user won’t affect the stability of another users. Each user will be allocated a specific amount of resources. If a user’s PHP script utilizes the entire resources allocated to it, then it won’t affect other users. Only that particular user will face problems related to this. That particular user will get a “Resource limit reached” error while he access his website. Read more related posts from Cloud Linux