Rotate Apache Error Logs and Access Logs

Apache Error LogWant to rotate apache error logs on Apache 2 webserver? There is a nice bash script you can use. Basically it works by stopping apache webserver and backing up your error logs and access logs (based on date), and then removing the original apache logs then starting apache again. You can use this script alongside with cron for automatic rotation. Create /usr/archive folder first if it doesn’t exists.

Artikel selengkapnya hanya untuk member.
Login atau Menjadi member

Posting Menarik Lainnya:

  1. No space left on device: Couldn’t create accept lock
  2. Incorrect Key File for Table MySQL Error
  3. Mempercepat Loading Blog dengan Optimasi Apache
  4. XML Parsing Error: XML or text declaration not at start of entity
  5. Mempercepat Loading Blog WordPress: Apache KeepAlive
  6. Hostgator Error Lagi: Akismet has detected a problem
  7. Sitemap Error Gara-Gara Global Translator

One Response to “Rotate Apache Error Logs and Access Logs”

  1. Never really looked at the information like that before. Thanks!

Leave a Reply