'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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值