日時: 2008/05/02 01:25
名前: わかと
FC8にてサーバー構築中にエラーで困っています。
AWStatsを導入中に下記のエラーが出て進めません。 手順に従いAWStatsデータベース作成まで来て
# sh awstatsinit.sh mydomein.com
Create/Update database for config "/etc/awstats/awstats.mydomein.com.conf" by AWStats version 6.7 (build 1.892) From data in log file "/var/log/httpd/access_log"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log. Your log file /var/log/httpd/access_log must have a bad format or LogFormat parameter setup does not match this format. Your AWStats LogFormat parameter is: 1 This means each line in your web server log file need to have "combined log format" like this: 111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" And this is an example of records AWStats found in your log file (the record number 50 in your log): 192.168.24.151 - - [29/Apr/2008:19:05:08 +0900] "-" 200 2602 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" Setup ('/etc/awstats/awstats.mydomein.com.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
と出てきてしまいます。/var/log/httpd/access_log を見ても中身がありません。 英文を読むと権限が無いような内容だと思われます。 色々と調べてはremoveしたり・・・・
どなたかヒントアドバイスお願いします。
|