Jump to content

Error log crashing server due to file size?!


your.syndrome

Recommended Posts

Hi, I'm using WordPress on one of my sites and it's generating a 2GB file size of the error log and using up the disk space.

 

Is there any short term fix to stop the error log building up?

 

I think it may be down to the amount of plugins and multiple languages being added ( via plugins )

Hi, I'm using WordPress on one of my sites and it's generating a 2GB file size of the error log and using up the disk space.

 

Is there any short term fix to stop the error log building up?

 

I think it may be down to the amount of plugins and multiple languages being added ( via plugins )

 

Well you really need to fix what's causing the errors. But if you just want to clear them out just do this in linux...

 

 

" > error.log "

 

That will make the file zero.

 

You can write a PHP program to do this, and run the cron once every 24 hours or however you wish...

 

; Log errors into a log file (server-specific log, stderr, or error_log (below))

; As stated above, you're strongly advised to use error logging in place of

; error displaying on production web sites.

log_errors = On

 

Find that in your php.ini and turn it to "off". You may even be able to do this with .htaccess as long as the server allows it.

 

Or follow what was posted above to to clear it out.

; Log errors into a log file (server-specific log, stderr, or error_log (below))

; As stated above, you're strongly advised to use error logging in place of

; error displaying on production web sites.

log_errors = On

 

Find that in your php.ini and turn it to "off". You may even be able to do this with .htaccess as long as the server allows it.

 

Or follow what was posted above to to clear it out.

 

Forgot about that....that's better than my suggestion....

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.