Log Apache Web Server Bengkak

Bengkaknya besaran file Log dari Web Server Apache akan menyebabkan ruang hardisk penuh serta performance web server menjadi turun. Ada baiknya dilakukan manajemen terhadap penggunaan Log tersebut.
Dalam apache terdapat file Rotatelogs.exe pada Apache\bin
Konfigurasi rotatelogs.exe pada Httpd :

  1. Buka file httpd di C:\xampp\apache\conf
  2. Cari syntax #CustomLog logs/access.log common, ubah menjadi:

#CustomLog logs/access.log common
CustomLog “| C:/xampp/apache/bin/rotatelogs.exe C:/xampp/apache/logs/access_%Y%m%d.log 86400” combined

FINISH

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s