The system was unable to find the problem caused by the directory that wrote the analysis file after the Awstats analysis log

Source: Internet
Author: User
Tags config

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.