error_log over 70GB. How to stop this? [closed]

Most important thing here would be to figure out what’s causing the errors as opposed to just hiding them. 70 GB file might be tough to open, so you can use tail to open up the last several lines of it tail -f error.log and see what’s going on. Maybe it’s a quick fix.

If it’s filling up with notices and things you’re okay with you might have debugging turned on? Turn it off in wp-config:

define( 'WP_DEBUG', false );

// don't generate log
define( 'WP_DEBUG_LOG', false );

// don't display errors
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', false );

Leave a Comment