Analog
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#contents
*Analog を設置するメモ [#w514fb07]
#portinstall www/analog
とするが、どうも、confファイルなどが思うところに入らない...
#make /usr/ports/www/analog
として、work ディレクトリを作成し、その中から必要なファイ...
** 必要なファイル群を手動でコピー [#u942e55d]
% cd work/analog-6.0/
% cp -p anlgform.pl /usr/local/share/analog
% cp -p anlgform.pl /usr/local/www/cgi-bin/
% mkdir /usr/local/www/data/analog/
% cp -p /usr/local/share/analog/lang/jpeform.html /usr/l...
# cp -p /usr/local/www/apache22/data/analog/jpeform.html...
# cp -p /usr/local/www/data/analog.html /usr/local/www/d...
***analog.htmlの編集 [#ac622ee6]
% diff analog.html.orig analog.html
9c9
< <h1><!-- img src="/images/analogo.gif" alt="" --> Anal...
---
> <h1><img src="/images/analogo.gif" alt=""> Analog フォ...
17c17
< <!-- form action="/cgi-bin/anlgform.pl" method="POST" ...
---
> <form action="/cgi-bin/anlgform.pl" method="POST">
21c21
< <!-- input type=hidden name="IMAGEDIR" value="/images/...
---
> <input type=hidden name="IMAGEDIR" value="/images/">
24c24
< <!-- input type=hidden name="cg" value="/analog/other....
---
> <!--input type=hidden name="cg" value="/analog/other.c...
27c27
< <!-- input type=hidden name="LOGFILE" value="/usr/loca...
---
> <!--input type=hidden name="LOGFILE" value="/var/log/h...
36,39c36,39
< <strong><font color=red>注意 : 以下の指示に従って環境...
< このフォームは動作しないでしょう。例えば、ボタンさえ現...
< 環境設定を終了した後、この文節を削除してください。<br>
< </font></strong>
---
***anlgform.pl の編集 [#r55ce5fb]
# cp -p /usr/local/www/cgi-bin/anlgform.pl /usr/local/ww...
% diff -urN anlgform.pl.orig anlgform.pl
--- anlgform.pl.orig 2004-12-19 22:51:22.000000000 +0...
+++ anlgform.pl 2008-10-11 16:10:52.000000000 +0900
@@ -18,8 +18,9 @@
# 1) uncomment (remove everything before $analog) and e...
# lines to give the location (full pathname) of the ...
-# Unix: $analog = '/usr/local/etc/httpd/analog-6....
-# Windows: $analog = 'C:\program files\analog 6.0...
+#Unix: $analog = '/usr/local/etc/httpd/analog-6.0/analo...
+Unix: $analog = '/usr/local/bin/analog';
+#Windows: $analog = 'C:\program files\analog 6.0\analog...
# 2) If you're on Unix, edit the first line in this fil...
# of Perl (don't remove the #! though).
# 3) You also need to edit anlgform.html if you want to...
@@ -28,7 +29,7 @@
@forbidden = qw(LOGFORMAT APACHELOGFORMAT DEFAULTLOGFOR...
APACHEDEFAULTLOGFORMAT HEADERFILE FOOTERF...
OUTFILE CACHEOUTFILE LOCALCHARTDIR ERRFIL...
- SETTINGS PROGRESSFREQ LANGFILE DESCFILE);
+ SETTINGS PROGRESSFREQ LANGFILE DESCFILE ...
# Forbidden commands: sysadmin can add more (must be in...
# Other commands you might consider adding, because the...
# specify which files to use for the analysis, are LOGF...
@@ -95,8 +96,15 @@
# 3) PRINT ALL THE COMMANDS
# Special cases: must come first
-printargs('CG', 'CONFIGFILE') unless forbidden('CG');
-# both 'CG' and 'CONFIGFILE' must be allowed for this t...
+$configfile = "/usr/local/www/data/analog/other.cfg";
+printargs('CM', 'CONFIGFILE') unless forbidden('CM');
+# again, both 'CM' and 'CONFIGFILE' must be allowed for...
+open(CONFIG, $configfile);
+while (<CONFIG>)
+{
+ print ANALOG $_;
+}
+close(CONFIG);
print ANALOG "CGI ON\nDNS NONE\nWARNINGS FL\n";
printargs('WARNINGS');
printargs('LOGTIMEOFFSET');
***other.cfgの作成 [#ie221832]
% vi /usr/local/www/data/analog/other.cfg
LOGFORMAT COMBINED
LOGFILE /var/log/httpd-access.log #(解析対象のログファイ...
DNSFILE /usr/local/www/cgi-bin/analog/dnscache.txt
DNSLOCKFILE /usr/local/www/cgi-bin/analog/dnslock
DNS WRITE
OUTPUT HTML
% mkdir /usr/local/www/cgi-bin/analog
http://piano.smb.net/analog.html
http://piano.smb.net/~kuji/pukiwiki-1.4.7_notb_utf8/index...
http://www.google.co.jp/search?hl=ja&q=analog+6.0%E3%80%8...
http://www.bugbearr.jp/?FreeBSD%2Fanalog
http://freebsd.sing.ne.jp/FreeBSD/15.html
----
#counter([total|today|yesterday]);
&lastmod;
----
終了行:
#contents
*Analog を設置するメモ [#w514fb07]
#portinstall www/analog
とするが、どうも、confファイルなどが思うところに入らない...
#make /usr/ports/www/analog
として、work ディレクトリを作成し、その中から必要なファイ...
** 必要なファイル群を手動でコピー [#u942e55d]
% cd work/analog-6.0/
% cp -p anlgform.pl /usr/local/share/analog
% cp -p anlgform.pl /usr/local/www/cgi-bin/
% mkdir /usr/local/www/data/analog/
% cp -p /usr/local/share/analog/lang/jpeform.html /usr/l...
# cp -p /usr/local/www/apache22/data/analog/jpeform.html...
# cp -p /usr/local/www/data/analog.html /usr/local/www/d...
***analog.htmlの編集 [#ac622ee6]
% diff analog.html.orig analog.html
9c9
< <h1><!-- img src="/images/analogo.gif" alt="" --> Anal...
---
> <h1><img src="/images/analogo.gif" alt=""> Analog フォ...
17c17
< <!-- form action="/cgi-bin/anlgform.pl" method="POST" ...
---
> <form action="/cgi-bin/anlgform.pl" method="POST">
21c21
< <!-- input type=hidden name="IMAGEDIR" value="/images/...
---
> <input type=hidden name="IMAGEDIR" value="/images/">
24c24
< <!-- input type=hidden name="cg" value="/analog/other....
---
> <!--input type=hidden name="cg" value="/analog/other.c...
27c27
< <!-- input type=hidden name="LOGFILE" value="/usr/loca...
---
> <!--input type=hidden name="LOGFILE" value="/var/log/h...
36,39c36,39
< <strong><font color=red>注意 : 以下の指示に従って環境...
< このフォームは動作しないでしょう。例えば、ボタンさえ現...
< 環境設定を終了した後、この文節を削除してください。<br>
< </font></strong>
---
***anlgform.pl の編集 [#r55ce5fb]
# cp -p /usr/local/www/cgi-bin/anlgform.pl /usr/local/ww...
% diff -urN anlgform.pl.orig anlgform.pl
--- anlgform.pl.orig 2004-12-19 22:51:22.000000000 +0...
+++ anlgform.pl 2008-10-11 16:10:52.000000000 +0900
@@ -18,8 +18,9 @@
# 1) uncomment (remove everything before $analog) and e...
# lines to give the location (full pathname) of the ...
-# Unix: $analog = '/usr/local/etc/httpd/analog-6....
-# Windows: $analog = 'C:\program files\analog 6.0...
+#Unix: $analog = '/usr/local/etc/httpd/analog-6.0/analo...
+Unix: $analog = '/usr/local/bin/analog';
+#Windows: $analog = 'C:\program files\analog 6.0\analog...
# 2) If you're on Unix, edit the first line in this fil...
# of Perl (don't remove the #! though).
# 3) You also need to edit anlgform.html if you want to...
@@ -28,7 +29,7 @@
@forbidden = qw(LOGFORMAT APACHELOGFORMAT DEFAULTLOGFOR...
APACHEDEFAULTLOGFORMAT HEADERFILE FOOTERF...
OUTFILE CACHEOUTFILE LOCALCHARTDIR ERRFIL...
- SETTINGS PROGRESSFREQ LANGFILE DESCFILE);
+ SETTINGS PROGRESSFREQ LANGFILE DESCFILE ...
# Forbidden commands: sysadmin can add more (must be in...
# Other commands you might consider adding, because the...
# specify which files to use for the analysis, are LOGF...
@@ -95,8 +96,15 @@
# 3) PRINT ALL THE COMMANDS
# Special cases: must come first
-printargs('CG', 'CONFIGFILE') unless forbidden('CG');
-# both 'CG' and 'CONFIGFILE' must be allowed for this t...
+$configfile = "/usr/local/www/data/analog/other.cfg";
+printargs('CM', 'CONFIGFILE') unless forbidden('CM');
+# again, both 'CM' and 'CONFIGFILE' must be allowed for...
+open(CONFIG, $configfile);
+while (<CONFIG>)
+{
+ print ANALOG $_;
+}
+close(CONFIG);
print ANALOG "CGI ON\nDNS NONE\nWARNINGS FL\n";
printargs('WARNINGS');
printargs('LOGTIMEOFFSET');
***other.cfgの作成 [#ie221832]
% vi /usr/local/www/data/analog/other.cfg
LOGFORMAT COMBINED
LOGFILE /var/log/httpd-access.log #(解析対象のログファイ...
DNSFILE /usr/local/www/cgi-bin/analog/dnscache.txt
DNSLOCKFILE /usr/local/www/cgi-bin/analog/dnslock
DNS WRITE
OUTPUT HTML
% mkdir /usr/local/www/cgi-bin/analog
http://piano.smb.net/analog.html
http://piano.smb.net/~kuji/pukiwiki-1.4.7_notb_utf8/index...
http://www.google.co.jp/search?hl=ja&q=analog+6.0%E3%80%8...
http://www.bugbearr.jp/?FreeBSD%2Fanalog
http://freebsd.sing.ne.jp/FreeBSD/15.html
----
#counter([total|today|yesterday]);
&lastmod;
----
ページ名: