error_log fills up even with Error Off
Hi,
I'm getting filled /home/username/logs/domain_tld.php.error.log
Even display_errors is Off.
How to stop it?
Thank you!
-
I edit: /var/cpanel/userdata/$user/$domain.tld.php-fpm.yaml and i set: php_value_error_reporting: {name: 'php_value[error_reporting]', value: E_ERROR } to LOG only errors. Is it correct? 0 -
Looks like is not OK. When I check phpinfo I see error_reporting 1 Please help to log only errors. 0 -
OK, Found that should be in int format: error_reporting(E_ALL | E_STRICT); // 8191 error_reporting(E_NOTICE); // 8 error_reporting(E_PARSE); // 2 error_reporting(E_WARNING); // 2 error_reporting(E_ERROR); // 1 error_reporting(E_ERROR | E_PARSE); // 5 and tried 2,5 but warnings are still logging :( 0 -
Hello @masterross, As of cPanel & WHM version 78, you can change the default value for the error_reporting php.ini directive, or unlock a user's ability to modify the error_reporting php.ini directive when PHP-FPM is enabled via the System PHP-FPM Configuration tab in WHM >> MultiPHP Manager. Additionally, check out the following resource on modifying php.ini directives for individual accounts when PHP-FPM is enabled: Thank you. 0 -
Hi, I'm on v78.0.13 and did this: 57221 57213 But nothing changed: 57217 What is wrong? Additionally I edit /var/cpanel/userdata/username/domain.com.php-fpm.yaml and tried again php_value_error_reporting: {name: 'php_value[error_reporting]', value: E_ERROR | E_PARSE } and php_value_error_reporting: {name: 'php_value[error_reporting]', value: E_ERROR } The value is changing in phpinfo but warnings still logging! 0 -
Hello @masterross, Can you remove the custom changes you made to the "php_value_error_reporting" value in WHM >> MultiPHP INI Editor and in the domain.com.php-fpm.yaml file? You've set a global value via WHM >> MultiPHP Manager per your first screenshot, so you should not make additional modifications in the other two areas. Thank you. 0 -
Hi, I remove mods in system FPM settings: 57229 And tried phpinfo - no changes. Warnings still logging! After that I did change in per domain FPM: 57233 57237 The setting in phpinfo is changed but warnings still logging! in cP php editor is set: As57241 As you can see I even set log_errors = Off but log is filling! These settings in user php.ini is not affect! So any other idea? 0
Please sign in to leave a comment.
Comments
8 comments