Webalizer

 Webalizer


gd-devel libpng-devel db4-develインストール
[root@falcon21 ~]# yum -y install gd-devel libpng-devel db4-devel


centos6.9 にWebalizerをインストール
[root@falcon21 ~]# wget http://ftp.riken.go.jp/Linux/centos/6.9/os/i386/Packages/webalizer-2.21_02-3.3.el6.i686.rpm

[root@falcon21 ~]# rpm -ivh webalizer-2.21_02-3.3.el6.i686.rpm


Webalizer設定
[root@falcon21 ~]# vi /etc/webalizer.conf
94 HostName falcon21.space
204 ReallyQuiet yes
378 HideSite falcon21.space

473 IgnoreSite 192.168.2.*
474 IgnoreURL /webalizer/*
475 IgnoreURL /phpmyadmin/*
476 IgnoreURL /awstates/*
477 #IgnoreReferrer file:/*

533 SearchEngine google.co.jp q=
534 SearchEngine search.yahoo.co.jp p=
535 SearchEngine goo.ne.jp MT=
536 SearchEngine infoseek.co.jp qt=
537 SearchEngine search.msn.co.jp q=
538 SearchEngine search.nifty.com Text=
539 SearchEngine search.biglobe.ne.jp q=
540 SearchEngine cache.yahoofs.jp w=


[root@falcon21 ~]# /usr/bin/webalizer -c /etc/webalizer.conf


cron登録
[root@falcon21 ~]# crontab -e
02 * * * * /usr/bin/webalizer -c /etc/webalizer.conf


[root@falcon21 ~]# vi /etc/httpd/conf.d/webalizer.conf
Alias /usage /var/www/usage

<Location /usage>
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.2.100/24 192.168.0.1/24
</Location>


webalizerコマンドで解析を実行
[root@falcon21 ~]# webalizer


[root@falcon21 ~]# chown -R apache:apache /var/www/usage
[root@falcon21 ~]# /etc/init.d/httpd restart


---------------------------

ブラウザで確認 (http://falcon21.space/usage/ にアクセス)

投票数:10 平均点:10.00

 
Back to Top