Jump to content

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....

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.