Home
News
Forum
Wiki
Blog
Contents
Gallery
Movies
Downloads
About NSL
If you want to see English page, please click "English" Button at Left.
[
タイトル一覧
|
ページ一覧
|
新規
|
単語検索
|
最終更新
|
ヘルプ
]
AWStats
をテンプレートにして作成
[
トップ
]
[ ]
開始行:
*AWStats
-WWW用ログ解析ツール
#br
**Links
- http://awstats.sourceforge.net/
- 日本語化バージョン http://www.bflets.dyndns.org/Tools/...
#br
**インストール
*** [[Jcode.pm]] のインストール
- Perl用の日本語処理ライブラリ jcode.pl の後継
- http://openlab.ring.gr.jp/Jcode/index-j.html
# zcat Jcode-*.tar.gz | tar xvf -
# cd Jcode-*
# perl Makefile.PL; make; make install
*** AWStatsのインストール
-展開ディレクトリを /usr/local/awstats にする.
# chown -R www.www /usr/local/awstats
# cd /usr/local/awstats/wwwroot/cgi-bin
# ln -s awstats.model_jp.conf awstats.model.conf
# cd ../../tools
# perl awstats_configure.pl
-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
> NSL
-----> Define config file path
In which directory do you plan to store your config file...
Default: /etc/awstats
Directory path to store config file(s) (Enter for defaul...
> /usr/local/etc/awstats
** 設定
*** Apacheの設定
-httpd.conf の CustomLog を ''combined'' にする.HTTPS を...
# Per-Server Logging:
# The home of a custom SSL log file. Use this when you...
# compact non-error SSL logfile on a virtual host basis.
#CustomLog /usr/local/apache/logs/ssl_request_log \
# "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\"...
CustomLog /usr/local/apache/logs/access_log combined
- 以下の設定が自動的に apache の ''httpd.conf'' に追加さ...
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classe...
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bi...
#
# This is to permit URL access to scripts/files in AWSta...
#
<Directory "/usr/local/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
- apache の再起動
#br
*** AWStatsの設定
- 設定ファイル
# vi /usr/local/etc/awstats/awstats.NSL.conf
LogFile="/var/log/awstats_log.utf8"
SiteDomain="www.nsl.tuis.ac.jp"
# chmod o+rx /usr/local/etc/awstats
# chmod o+r /usr/local/etc/awstats/*
- 結果を格納するディレクトリを作る
# mkdir /var/lib/awstats
# chown www.www /var/lib/awstats
# chmod o-rwx,g+s /var/lib/awstats
- 最初の実行
# /usr/local/awstats/wwwroot/cgi-bin/utf8_decode.pl < /u...
# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=...
- チェック
http://www.nsl.tuis.ac.jp/awstats/awstats.pl?config=NSL
#br
*** cron の設定
- ''awstats.cron'' を編集して,''/etc/cron.daily'' にコ...
- サンプル
#! /usr/bin/perl
# 完全日本語版AWStats用サンプルcronファイル
#
# ファイルパス等は自分の環境に合わせて書き直して下さい。
# httpのログファイルをデコードした上で一時ディレクトリに...
# access_log.utf8は一時的にデコードしたログを保存するフ...
system(" /usr/local/awstats/wwwroot/cgi-bin/utf8_decode....
#system(" /bin/cat < /dev/null > /usr/local/apache/logs/...
# awstats.plが切り詰めないオリジナルのログを切り詰めます...
open(LOG,"+</usr/local/apache/logs/access_log");
truncate(LOG,0);
close(LOG);
# Ver.5.0から、更新処理を別途走らせる必要ができたらしい....
system(" /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -...
#system(" /usr/local/awstats/wwwroot/cgi-bin/awstats.pl ...
# awstats.plを走らせ、htmlファイルを出力します。
# 必須ではありませんが、awstats.plを直接参照させるよりも...
# る方が、良好なパフォーマンスが得られます。
system(" /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -...
# アクセス可能になるように出力したhtmlファイルの権限を変更
system("chown www.www /home/apache/htdocs/awstats_log/in...
# chmod a+rx /etc/cron.daily/awstats.cron
# mkdir /home/apache/htdocs/awstats_log
# chown www.www /home/apache/htdocs/awstats_log
終了行:
*AWStats
-WWW用ログ解析ツール
#br
**Links
- http://awstats.sourceforge.net/
- 日本語化バージョン http://www.bflets.dyndns.org/Tools/...
#br
**インストール
*** [[Jcode.pm]] のインストール
- Perl用の日本語処理ライブラリ jcode.pl の後継
- http://openlab.ring.gr.jp/Jcode/index-j.html
# zcat Jcode-*.tar.gz | tar xvf -
# cd Jcode-*
# perl Makefile.PL; make; make install
*** AWStatsのインストール
-展開ディレクトリを /usr/local/awstats にする.
# chown -R www.www /usr/local/awstats
# cd /usr/local/awstats/wwwroot/cgi-bin
# ln -s awstats.model_jp.conf awstats.model.conf
# cd ../../tools
# perl awstats_configure.pl
-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
> NSL
-----> Define config file path
In which directory do you plan to store your config file...
Default: /etc/awstats
Directory path to store config file(s) (Enter for defaul...
> /usr/local/etc/awstats
** 設定
*** Apacheの設定
-httpd.conf の CustomLog を ''combined'' にする.HTTPS を...
# Per-Server Logging:
# The home of a custom SSL log file. Use this when you...
# compact non-error SSL logfile on a virtual host basis.
#CustomLog /usr/local/apache/logs/ssl_request_log \
# "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\"...
CustomLog /usr/local/apache/logs/access_log combined
- 以下の設定が自動的に apache の ''httpd.conf'' に追加さ...
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classe...
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bi...
#
# This is to permit URL access to scripts/files in AWSta...
#
<Directory "/usr/local/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
- apache の再起動
#br
*** AWStatsの設定
- 設定ファイル
# vi /usr/local/etc/awstats/awstats.NSL.conf
LogFile="/var/log/awstats_log.utf8"
SiteDomain="www.nsl.tuis.ac.jp"
# chmod o+rx /usr/local/etc/awstats
# chmod o+r /usr/local/etc/awstats/*
- 結果を格納するディレクトリを作る
# mkdir /var/lib/awstats
# chown www.www /var/lib/awstats
# chmod o-rwx,g+s /var/lib/awstats
- 最初の実行
# /usr/local/awstats/wwwroot/cgi-bin/utf8_decode.pl < /u...
# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=...
- チェック
http://www.nsl.tuis.ac.jp/awstats/awstats.pl?config=NSL
#br
*** cron の設定
- ''awstats.cron'' を編集して,''/etc/cron.daily'' にコ...
- サンプル
#! /usr/bin/perl
# 完全日本語版AWStats用サンプルcronファイル
#
# ファイルパス等は自分の環境に合わせて書き直して下さい。
# httpのログファイルをデコードした上で一時ディレクトリに...
# access_log.utf8は一時的にデコードしたログを保存するフ...
system(" /usr/local/awstats/wwwroot/cgi-bin/utf8_decode....
#system(" /bin/cat < /dev/null > /usr/local/apache/logs/...
# awstats.plが切り詰めないオリジナルのログを切り詰めます...
open(LOG,"+</usr/local/apache/logs/access_log");
truncate(LOG,0);
close(LOG);
# Ver.5.0から、更新処理を別途走らせる必要ができたらしい....
system(" /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -...
#system(" /usr/local/awstats/wwwroot/cgi-bin/awstats.pl ...
# awstats.plを走らせ、htmlファイルを出力します。
# 必須ではありませんが、awstats.plを直接参照させるよりも...
# る方が、良好なパフォーマンスが得られます。
system(" /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -...
# アクセス可能になるように出力したhtmlファイルの権限を変更
system("chown www.www /home/apache/htdocs/awstats_log/in...
# chmod a+rx /etc/cron.daily/awstats.cron
# mkdir /home/apache/htdocs/awstats_log
# chown www.www /home/apache/htdocs/awstats_log
ページ名:
サイト内 検索
高度な検索
ログイン
ユーザー名:
パスワード:
パスワード紛失
新規登録
サブ メニュー
新着情報
Books
リンク
サイトマップ
e-Learning
TUIS 認証局証明書
ミニカレンダー
2025年 5月
日
月
火
水
木
金
土
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<今日>
オンライン状況
115 人のユーザが現在オンラインです。 (2 人のユーザが xpwiki を参照しています。)
登録ユーザ: 0
ゲスト: 115
もっと...
アクセスカウンタ
今日 :
昨日 :
総計 :
Powered by XOOPS Cube 2.1© 2001-2006
XOOPS Cube Project
Design by
XoopsDesign.com