#contents
*  portinstall japanese/webalizer が通った日 2012年7月30日 [#cdda49e3]
なんで?w
* portinstall  japanese/webalizer すると、エラーで止まる件 2012年7月28日 [#y39a3808]

 --->  Installing the new version via the port
 ===>  Installing for pkgconf-0.8.3
 
 ===>  pkgconf-0.8.3 conflicts with installed package(s):
       pkg-config-0.25_1
 
       They install files into the same place.
       Please remove them first with pkg_delete(1).
 *** Error code 1
 
 Stop in /usr/ports/devel/pkgconf.
 *** Error code 1
 
 Stop in /usr/ports/devel/pkgconf.
 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20120727-2263-z3qmz3-0 env make reinstall
 ** Fix the installation problem and try again.
 --->  Skipping 'x11-fonts/fontconfig' because a requisite port 'devel/pkgconf' failed (specify -k to force)
 --->  Skipping 'graphics/gd' because a requisite port 'x11-fonts/fontconfig' failed (specify -k to force)
 --->  Skipping 'japanese/webalizer' because a requisite port 'graphics/gd' failed (specify -k to force)
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
         ! devel/pkgconf (install error)
         * x11-fonts/fontconfig
         * graphics/gd
         * japanese/webalizer
 blackcube#

 blackcube# pkg_delete pkg-config-0.25_1
 pkg_delete: package 'pkg-config-0.25_1' is required by these other packages
 and may not be deinstalled:
 ap22-mod_python-3.3.1_3
 freetype2-2.4.9_1
 libICE-1.0.7,1
 libSM-1.2.0,1
 libX11-1.4.4,1
 libXau-1.0.6
 libXaw-1.0.9,2
 libXdmcp-1.1.0
 libXext-1.3.0_1,1
 libXmu-1.1.0,1
 libXp-1.0.1,1
 libXpm-3.5.9
 libXt-1.1.1,1
 libpthread-stubs-0.3_3
 libxcb-1.7
 libxml2-2.7.8_3
 libxslt-1.1.26_3
 pecl-APC-3.1.10
 pecl-pdflib-2.1.9
 php5-5.4.5
 php5-bcmath-5.4.4
 php5-bz2-5.4.4
 php5-calendar-5.4.4
 php5-ctype-5.4.4
 php5-curl-5.4.4
 php5-dba-5.4.4
 php5-dom-5.4.4
 php5-exif-5.4.4
 php5-extensions-1.7
 php5-fileinfo-5.4.4
 php5-filter-5.4.4
 php5-ftp-5.4.4
 php5-gd-5.4.4
 php5-gettext-5.4.4
 php5-gmp-5.4.4
 php5-hash-5.4.4
 php5-iconv-5.4.4
 php5-imap-5.4.4
 php5-json-5.4.4
 php5-ldap-5.4.4
 php5-mbstring-5.4.4
 php5-mcrypt-5.4.4
 php5-mssql-5.4.4
 php5-mysql-5.4.4
 php5-mysqli-5.4.4
 php5-odbc-5.4.4
 php5-openssl-5.4.4
 php5-pcntl-5.4.4
 php5-pdo-5.4.4
 php5-pdo_sqlite-5.4.4
 php5-pgsql-5.4.4
 php5-phar-5.4.4
 php5-posix-5.4.4
 php5-pspell-5.4.4
 php5-readline-5.4.4
 php5-recode-5.4.4
 php5-session-5.4.4
 php5-shmop-5.4.4
 php5-simplexml-5.4.4
 php5-snmp-5.4.4
 php5-soap-5.4.4
 php5-sockets-5.4.4
 php5-sqlite3-5.4.4
 php5-sybase_ct-5.4.4
 php5-sysvmsg-5.4.4
 php5-sysvsem-5.4.4
 php5-sysvshm-5.4.4
 php5-tidy-5.4.4
 php5-tokenizer-5.4.4
 php5-wddx-5.4.4
 php5-xml-5.4.4
 php5-xmlreader-5.4.4
 php5-xmlrpc-5.4.4
 php5-xmlwriter-5.4.4
 php5-xsl-5.4.4
 php5-zip-5.4.4
 php5-zlib-5.4.4_1
 php53-bcmath-5.3.15
 php53-bz2-5.3.15
 php53-calendar-5.3.15
 php53-ctype-5.3.15
 php53-curl-5.3.15
 php53-dba-5.3.15
 php53-dom-5.3.15
 php53-exif-5.3.15
 php53-fileinfo-5.3.15
 php53-filter-5.3.15
 php53-ftp-5.3.15
 php53-gd-5.3.15
 php53-gettext-5.3.15
 php53-gmp-5.3.15
 php53-hash-5.3.15
 php53-iconv-5.3.15
 php53-imap-5.3.15
 php53-json-5.3.15
 php53-ldap-5.3.15
 php53-mbstring-5.3.15
 php53-mcrypt-5.3.15
 php53-mssql-5.3.15
 php53-mysql-5.3.15
 php53-mysqli-5.3.15
 php53-odbc-5.3.15
 php53-openssl-5.3.15
 php53-pcntl-5.3.15
 php53-pdo-5.3.15
 php53-pdo_sqlite-5.3.15
 php53-pgsql-5.3.15
 php53-phar-5.3.15
 php53-posix-5.3.15
 php53-pspell-5.3.15
 php53-readline-5.3.15
 php53-recode-5.3.15
 php53-session-5.3.15
 php53-shmop-5.3.15
 php53-simplexml-5.3.15
 php53-snmp-5.3.15
 php53-soap-5.3.15
 php53-sockets-5.3.15
 php53-sqlite3-5.3.15
 php53-sybase_ct-5.3.15
 php53-sysvmsg-5.3.15
 php53-sysvsem-5.3.15
 php53-sysvshm-5.3.15
 php53-tidy-5.3.15
 php53-tokenizer-5.3.15
 php53-wddx-5.3.15
 php53-xml-5.3.15
 php53-xmlreader-5.3.15
 php53-xmlrpc-5.3.15
 php53-xmlwriter-5.3.15
 php53-xsl-5.3.15
 php53-zip-5.3.15
 php53-zlib-5.3.15
 phpMyAdmin-suphp-3.5.2
 postgresql-client-9.0.8
 py27-sqlite3-2.7.3_1
 py27-subversion-1.7.5
 sqlite3-3.7.13
 subversion-1.7.5
 suphp-0.7.1_5
 t1lib-5.1.2_1,1
 trac-0.12.3
 xproto-7.0.22
 xtrans-1.2.6
 blackcube#


*portupgrade webalizer-2.21-02 が出来ない件 [#df38696b]
取り敢えずhistoryだけつけとく。要するにconfigureの段階でgd関連のエラーのためストップしていた模様
    85  5:08    portupgrade webalizer-2.21-02
    86  5:09    cd /usr/ports/japanese/webalizer
    87  5:09    make rmconfig
    88  5:09    portupgrade webalizer-2.21-02
    89  5:09    portinstall japanese/webalizer
    90  5:10    make rmconfig
    91  5:10    portinstall japanese/webalizer
    92  5:12    portinstall japanese/webalizer
    93  5:13    pkgdb -R
    94  5:13    pkgdb -F
    95  5:14    locate php5-extensions
    96  5:14    portupgrade php5-extensions-1.3
    97  5:15    pkgdb -F
    98  5:19    pkgdb -F
    99  5:19    portinstall japanese/webalizer
   100  5:19    reboot
   101  5:22    portinstall japanese/webalizer
   102  5:25    pkgdb -F
   103  5:26    portsnap fetch && portsnap extract
   104  5:41    locate webalizer
   105  5:41    portupgrade ja-webalizer-2.21.2_1
   106  5:41    pkg_info -R ja-webalizer-2.21.2_1
   107  5:42    portinstall japanese/webalizer
   108  5:43    cd /usr/ports/japanese/webalizer
   109  5:43    make rmconfig
   110  5:43    cd /usr/ports/japanese/webalizer
   111  5:43    portinstall japanese/webalizer
   112  5:43    cd /usr/ports/japanese/webalizer
   113  5:43    ll
   114  5:43    rm -R work
   115  5:44    portinstall japanese/webalizer
   116  5:49    locate libpng.so.5
   117  5:49    locate libpng.so
   118  5:50    pkg_which /usr/local/lib/libpng.so
   119  5:50    pkg_info png-1.4.1_1
   120  5:51    portupgrade png-1.4.1_1:
   121  5:51    portupgrade png-1.4.1_1
   122  5:51    portinstall graphics/png
   123  5:52    cd /usr/ports/graphics/png
   124  5:52    make desintall
   125  5:52    make deinstall
   126  5:52    portinstall graphics/png
   127  5:52    portinstall japanese/webalizer
   128  5:55    locate libgd.so
   129  5:55    pkg_which /usr/local/lib/libgd.so
   130  5:55    portupgrade gd-2.0.35_2,1
   131  5:56    portinstall japanese/webalizer
   132  8:17    history

*Warning: Truncating oversized referrer field [50712] [#zf7f2a4e]
2009年11月29日対応
 Webalizer V2.21-02 (FreeBSD 7.2-RELEASE-p4 amd64) Japanese
 Using logfile /var/log/thousand-winds.net_log (clf)
 DNS Lookup (20): Warning: Truncating oversized referrer field [50711]
 Warning: Truncating oversized referrer field [50712]
 Warning: Truncating oversized referrer field [50713]
 Warning: Truncating oversized referrer field [50714]
   :                       :              :
 Generating report for November 2009
 Saving history information...
 Generating summary report
 318433 records (274149 ignored) in 4 seconds, 79608/sec

と正常終了の風であるが、Logを見てみると、ローテートされていないので、
/etc/newsyslog.conf
 /var/log/thousand-winds.net_log		644  12    *    @01T05 Z  /var/run/httpd.pid
 /var/log/thousand-winds.net-error_log		644  12    *    @01T06 Z  /var/run/httpd.pid
を追加

 
*webalizer 増設するメモ(バーチャルホスト) [#q8fc0fa9]
すでにwebalizerを設置しているホストで、バーチャルホストのログを解析する。
**設定ファイルの用意 [#k484331b]
FreeBSDのWebalizerの設定ファイルは、/usr/local/etc/ja-webalizer.conf にあるが、もうひとつ解析するので、
 # cp /usr/local/etc/ja-webalizer.conf /usr/local/etc/ja-webalizer_tfc.conf
として、LogFile、OutputDir、HistoryName、DNSCache、を再設定する。
''特に、DNSCache を既存のものと別にしないといつまでたっても終わらない''

 LogFile        /usr/local/www/apache22/data/logs/xag
 #LogFile        /var/log/tfc.kuji-clinic.info-access_log
 OutputDir      /usr/local/www/apache22/data/webalizer_tfc
 HistoryName	/usr/local/etc/webalizer_tfc.hist
 #Incremental	no
 HostName	guard.kuji-clinic.info
 
 PageType	htm*
 PageType	cgi
 #PageType	shtml
 #PageType	phtml
 #PageType	php3
 PageType	php
 #PageType	pl
 #PageType	rb 
 
 UseHTTPS    yes
 
 DNSCache	/usr/local/etc/dns_cache_tfc.db
 
 DNSChildren	20
  
 # Usually you want to hide these
 HideURL		*.gif
 HideURL		*.GIF
 HideURL		*.jpg
 HideURL		*.JPG
 HideURL		*.png
 HideURL		*.PNG
 HideURL		*.ra
 HideURL		*.css
 HideURL		*.CSS
 HideURL		*.ico
  
 #IgnoreSite	bad.site.net
 #IgnoreURL	/test*
 #IgnoreReferrer	file:/*
 #IgnoreAgent	RealPlayer
 #IgnoreUser     root
 
 # End of configuration file...  Have a nice day!



*japanese/webalizerを設置するメモ [#ed8bc5da]
**japanese/webalizer のインストール [#h90fc8c9]
 #portinstall japanese/webalizer
http://piano.smb.net/webalizer

http://www.smb.net/webalizer

http://www.niihama-med.or.jp/webalizer

http://guard.kuji-clinic.info/webalizer

&ref(option_webalizer.gif);文字変換有効にオプション設定してみる。

 CoolMaster:root {73} % cp ja-webalizer.conf-dist ja-webalizer.conf
 CoolMaster:root {74} % mkdir /usr/local/www/apache22/data/webalizer
 CoolMaster:root {75} % ja-webalizer -c /usr/local/etc/ja-webalizer.conf
 ja-webalizer: Command not found.
 CoolMaster:root {76} % rehash
 CoolMaster:root {77} % ja-webalizer -c /usr/local/etc/ja-webalizer.conf
 Webalizer V2.20-01 (FreeBSD 6.3-RELEASE-p5 i386) Japanese
 Using logfile /var/log/httpd-access.log (clf)
 Creating output in /usr/local/www/apache22/data/webalizer
 Hostname for reports is 'piano.smb.net'
 History file not found...
 Skipping bad record (1)
 Generating report for October 2008
 Saving history information...
 Generating summary report
 17225 records (1 bad) in 1 seconds, 17225/sec
 CoolMaster:root {78} % cp -Rp /usr/local/www/apache22/data/webalizer /usr/local/www/data/webalizer
**japanese/webalizer の設定 [#z3eed770]
 CoolMaster:root {108} % pwd
 /usr/local/etc

 CoolMaster:root {107} % diff -urN ja-webalizer.conf-dist ja-webalizer.conf

 --- ja-webalizer.conf-dist      2008-10-11 06:36:18.000000000 +0900
 +++ ja-webalizer.conf   2008-10-11 11:57:56.000000000 +0900
 @@ -27,6 +27,7 @@
  # is being read.
 
  #LogFile        /var/lib/httpd/logs/access_log
 +LogFile        /var/log/httpd-access.log
 
  # LogType defines the log type being processed.  Normally, the Webalizer
  # expects a CLF or Combined web server log as input.  Using this option,
 @@ -41,6 +42,7 @@
  # If no output directory is specified, the current directory will be used.
 
  #OutputDir      /var/lib/httpd/htdocs/usage
 +OutputDir       /usr/local/www/data/webalizer
 
  # HistoryName allows you to specify the name of the history file produced
  # by the Webalizer.  The history file keeps the data for previous months,
 @@ -91,7 +93,7 @@
  # try to get the hostname via a uname system call.  If that fails,
  # it will default to "localhost".
 
 -#HostName      www.webalizer.org
 +HostName       piano.smb.net
 
  # HTMLExtension allows you to specify the filename extension to use
  # for generated HTML pages.  Normally, this defaults to "html", but
 @@ -110,7 +112,7 @@
  #PageType      shtml
  #PageType      phtml
  #PageType      php3
 -#PageType      php
 +PageType       php
  #PageType      pl
  #PageType      rb
 
 @@ -171,7 +173,7 @@
  # relative to the default output directory.  See the DNS.README file for
  # additional information.
 
 -#DNSCache      dns_cache.db
 +DNSCache       /usr/local/etc/dns_cache.db
 
  # DNSChildren allows you to specify how many "children" processes are
  # run to perform DNS lookups to create or update the DNS cache file.
 @@ -185,7 +187,7 @@
  # normal system operations.  Reasonable values should be between 5 and
  # 20.  See the DNS.README file for additional information.
 
 -#DNSChildren   0
 +DNSChildren    20
 
  # CacheIPs allows unresolved IP addresses to be cached in the DNS
  # database.  Normally, only resolved addresses are saved.  At some
 @@ -660,8 +662,16 @@
  # remember, the use of these will MAKE YOUR STATS INACCURATE and you
  # should consider using an equivalent 'Hide*' keyword instead.
 
 -#IgnoreSite    bad.site.net
 -#IgnoreURL     /test*
 +IgnoreSite     219.117.246.208
 +IgnoreSite     210.255.122.209
 +IgnoreSite     smb208.smb.net
 +IgnoreSite     gw.kuji-clinic.net
 +
 +#IgnoreURL     /
 +IgnoreURL      /mailman*
 +IgnoreURL      /~tfc/anonymouse_mailform/*
 +IgnoreURL      /~kuji/pukiwiki-1.4.7_notb_utf8/skin*
 +IgnoreURL      /cgi-bin*
  #IgnoreReferrer        file:/*
  #IgnoreAgent   RealPlayer
  #IgnoreUser     root
**cron で自動更新 [#s96fae85]
vi /root/bin/japanese_webalizer.sh
 #!/bin/sh
 ja-webalizer -c /usr/local/etc/ja-webalizer.conf
vi /etc/crontab
 00	0	*	*	*	root	/root/bin/japanese_webalizer.sh
を追加。

apache のログローテションは5:00 なのだが、合わせなくて良いのかな??

http://freebsd.server-manual.com/webalizer.html
----
#counter([total|today|yesterday]);
&lastmod;

----

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS