Skip to main content

Apache log files growing to hundreds of gigabytes

Comments

2 comments

  • SysSachin
    Hello, If you can change in php.ini file as below then the error logs will not stored. In the php.ini file locate error_reporting = And change the value to error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED display_errors = On And change the value to display_errors = Off
    0
  • cPanelMichael
    Hello :) These are the log files for PHP error messages. It's typically a good idea to review the large error_log files to determine why the log file is growing to such a large size. However, beyond that, the best way to address the issue is to setup a cron job as you mentioned. You may also find this thread helpful: Massive Error Logs and Suhosin Errors Thank you.
    0

Please sign in to leave a comment.