Categories
Free Open Source Software (FOSS) Free to use TIK World Wide Web

Bikin Clear Log berkala di Kloxo

Kloxo merupakan salah satu panel hosting gratis yang sangat mudah digunakan. Kloxo sendiri dirilis oleh LxCenter.

Dengan Kloxo, maka Anda akan dapat dengan mudah mengatur nameserver, email, tambah domain dan lain-lain. Panel Kloxo memiliki fitur yang tidak kalah lengkap dengan WHM dan cPanel.

Dalam blog kali ini, saya akan bahas mengenai script cron job agar bisa clear log dalam kloxo secara berkala, yaitu sebagai berikut:

 

1.Buat file cleankloxo.sh di /etc/cron.daily/

1
2
vi /etc/cron.daily/cleankloxo.sh
Isi file dengan script berikut ini
1
2
3
4
5
6
7
8
9
# !/bin/bash
rm -rf /home/*/__processed_stats/*
rm -rf /home/kloxo/httpd/lighttpd/*
rm -rf /var/log/kloxo/*
rm -f /home/httpd/*/stats/*
echo "Clear log completed"
echo "start Corrected statistics"
cd /usr/local/lxlabs/kloxo/httpdocs/
lphp.exe ../bin/collectquota.php

 

2.Bikin otorisasi untuk file tersebut.

1
chmod 755 /etc/cron.daily/cleankloxo.sh

 

3.Jalankan

1
/etc/cron.daily/cleankloxo.sh

 

Untuk menginstall kloxo anda dapat mengunduh file nya dari Bharat Vashist https://www.shineservers.com disini Buku Panduan instalasi Kloxo

 

Kloxo Control Panel Admin – Telkom University

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Just Shared on Tel-U

Subscribe now to keep reading and get access to the full archive.

Continue reading