ログローテーション webalizerメモ
/etc/logrotate.d/apacheをいじって -fオプションでlogrotate
毎日ローテーション
daily
rotate 14
を書き足す
webalizer.conf
ログのローテーションされたものを読むように変更
ユーザ用設定ファイル「/home/ユーザー名/webalizer.conf」を編集する
LogFile /var/log/httpd/ユーザー名/access_log
OutputDir /home/ユーザー名/public_html/webalizer
HistoryName /home/ユーザー名/public_html/webalizer/webalizer.hist
IncrementalName /home/ユーザー名/public_html/webalizer/webalizer.current
HostName zzzz.xxxx.ne.jp
そんなとこかな。
/etc/rc.d/rc.localに書き込んで起動時処理