August 18, 2003

Awstatsインストールメモ

Awstatsをインストールしたときのメモ。

下記サイトの説明通りにインストール。とても簡単。
http://www.ryu.dyn.to/Tools/AWStatsJpn.html

※apacheのログ形式はあらかじめCombinedにしておく必要がある。
 他の形式のログが残っているとエラーが出るので削除しないとダメ。

◆Jcode.pmのインストールとローカライズ設定

$ perl -MCPAN -e 'install Jcode'
$ /usr/local/apache2/cgi-bin/decode.pl < /usr/local/apache2/logs/access_log > /usr/local/apache2/logs/access_log.euc
$ perl /usr/local/apache2/cgi-bin/awstats.pl -config=home.teachat.org -update
$ perl /usr/local/apache2/cgi-bin/awstats.pl -config=home.teachat.org -output -staticlinks > /usr/local/apache2/htdocs/awstats/index.html


◆確認

$ ls -la /usr/local/apache2/logs/access_log.euc
$ ls -la /usr/local/apache2/htdocs/awstats.html


http://localhost/awstats/index.html
http://localhost/cgi-bin/awstats.pl?config=home.teachat.org


◆外から見えないようにしておく。

$ vi /usr/local/apache2/conf/httpd.conf
AllowOverride None

AllowOverride All


$ vi /usr/local/apache2/htdocs/awstats/.htaccess
order deny,allow
deny from all
allow from .xxx.xxx(ひみつ)


この記事へのトラックバックURL

http://app.blog.livedoor.jp/cpiblog00035/tb.cgi/4081544