sorceforgeにあるawstats-6.2.1.noarch.rpmをダウンロード
rpm -ivh ./awstats-6.2.1.noarch.rpm
でインストール。
If first install, follow instructions in documentation
(/usr/local/awstats/docs/index.html) to setup AWStats in
3 steps:
Step 1 : Install and Setup with awstats_configure.pl
Step 2 : Build/Updates Statistics with awstats.pl
Step 3 : Read Statistics
とか言われた。
/usr/local/awstats/tools/awstats_configure.pl
で設定画面がでてくる!
Enter full config file path of your Web server
でApacheのhttpd.confの場所を指定する。
/etc/httpd/conf/httpd.conf
/etc/awstats.model.confをupdateしたとか言われる。 そのあと、
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?
とかいわれるのでy。
Define config file name to create
でwebサイトのURLを記述する
sonata.zive.net
Define config file path
configファイルのpathを変更するかどうか。デフォルトが/etc/awstatsなのでそのままでいくことにする。 Enterキーを押すと設定ファイルが作成されてhttpdが勝手にrestartされた。その後
Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=sonata.zive.net
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue...
と玄箱Debianの時に見たような文字列が。cronに登録しろよ。と。
とりあえずEnter押す。
perl awstats.pl -update -config=sonata.zive.net
http;//localhost/awstats/awstats.pl?config=sonata.zive.net
で、見れるんだって。