hoge# tar zxvf analog-5.32.tar.gz hoge# cd analog-5.32 hoge# make |
hoge# mkdir /usr/local/etc/analog hoge# cp analog /usr/local/etc/analog/ hoge# cp analog.cfg /usr/local/etc/analog/ hoge# cp anlgform.pl /usr/local/etc/analog/ hoge# cp jpeform.html /usr/local/etc/analog/ hoge# cp -R lang /usr/local/etc/analog/ hoge# cp -R images /usr/local/etc/analog/ |
LANGUAGE JAPANESE-SJIS #S-JISで表示する場合 HOSTNAME "[あなたの組織名]" HOSTURL "http://www.your-organization.ac.jp/" #なくても可 LOGFILE /var/log/httpd-access.log #解析したいログ OUTFILE Report.html #解析結果を出力したいファイル名とその場所を指定 |
#!/usr/bin/perl -T #適切なperlの位置 # 1) uncomment (remove everything before $analog) and edit one of the next two # lines to give the location (full pathname) of the analog executable. Unix: $analog = '/usr/local/etc/analog/analog'; # Windows: $analog = 'C:\program files\analog 5.32\analog.exe'; # 2) If you're on Unix, edit the first line in this file to give the location # of Perl (don't remove the #! though). # 3) You also need to edit anlgform.html if you want to use the form. # 4) Add to the forbidden commands below if you want. |
<!-- form action="/cgi-bin/anlgform.pl" method="POST" --> | v <form action="anlgform.pl" method="POST"> <!-- input type=hidden name="IMAGEDIR" value="/images/" --> | v <input type=hidden name="IMAGEDIR" value="images"> <!-- input type=hidden name="LOGFILE" value="/usr/local/apache/logs/access.log" --> | v <input type=hidden name="LOGFILE" value="/var/log/httpd-access.log"> |
Alias /analog/ "/usr/local/etc//analog/" AddHandler cgi-script .cgi .pl <Directory "/usr/local/etc/analog"> Options ExecCGI Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> |
hoge# rehash hoge# /usr/local/sbin/apachectl restart |
hoge# /usr/local/etc/analog/analog |
hoge# cp /usr/local/share/analog/lang/jpeform.html /usr/local/www/data/ |