'DirData' parameter (./data) does not exist問題的解決
[root@localhost cgi-bin]#./awstats.pl -update -config=123
Error: AWStats database directory defined in config file by 'DirData' parameter (./data) does not exist or is not writable.
Check config file, permissions and AWStats documentation (in 'docs' directory).
這個問題應該是無法找到AWStats分析日志後寫分析文件的目錄導致的,我的情況是./data目 錄在cgi-bin目錄下已經存在,並且權限也沒有任何問題,可以讀寫,但是仍然提示錯誤,一時間內問題無法 找到,最後發現了定義DirData變量的文件awstats.myConf.conf,在此文件中,指定了DirData的路徑,默認 是./data,為了安全其間,我直接寫了data目錄的絕對路徑,然後繼續執行更新操作,問題解決。
[root@localhost cgi-bin]#./awstats.pl -update -config=123
Update for config "./awstats.123.conf"
With data in log file "/cicro/cws3/vhosts/www.123.gov.cn/ROOT/log/accesslogs/123_access_log.txt"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 4663337)
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 4663337
Found 4663337 already parsed records.
Parsed lines in file: 15023
Found 1 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 15022 new qualified records.
本文出自 “技術成就夢想” 博客,請務必保留 此出處http://ixdba.blog.51cto.com/2895551/526098