Resolution of ' dirdata ' parameter (./data) does not exist problem
[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 isn't not writable .
Check config file, permissions and AWStats documentation (in ' Docs ' directory).
This problem should be unable to find Awstats analysis log after writing analysis of the directory caused by, my situation is. The/data directory already exists in the Cgi-bin directory, and there is no problem with the permissions, you can read and write, but still prompts the error, a time problem can not be found, Finally, we found the file awstats.myConf.conf that defines the dirdata variable, in which the Dirdata path is specified, and the default is./data, for the sake of security, I write directly to the absolute path of the data directory, and then continue to perform the update operation, solve the problem.
[Root@localhost cgi-bin]#./awstats.pl-update-config=123
Update for config "./awstats.123.conf"
With the 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 the 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.
This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/526098