- Plesk 12.5 for Linux
- Plesk 11.x for Linux
error_logfile is being filled very fast, it has huge size and takes a lot of space on a server;
- For example, /var/www/vhosts/system/example.com/logs/error_log contains the following records:
CONFIG_TEXT: PHP message: PHP Warning: feof() expects parameter 1 to be resource, null given in /var/www/vhosts
PHP Notice: Use of undefined constant subcat - assumed 'subcat' in /var/www/vhosts/example.com/httpdocs/right_menu.php on line 54
Too many errors are written to a log file due to incorrect website coding. And
file for a domain logs all actions, including warnings and notices.
Contact web-developer to fix the issue with website coding;
To exclude php warnings from being written to logs, modify
error_reportingvalue for PHP Settings for a domain:
Set as below under Domains > example.com > PHP Settings > error_reporting:
CONFIG_TEXT: error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
This value will exclude warnings and notices from being logged.