免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3500 | 回复: 5
打印 上一主题 下一主题

[Web] 请教关于awstats的问题!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-03 14:35 |只看该作者 |倒序浏览
为什么装上之后awstats页面说从未更新.而且全部统计的据都是0,

论坛徽章:
0
2 [报告]
发表于 2007-04-03 14:41 |只看该作者
英语比较差,这上怎么回事?高手帮我看看那个地方没设置对!
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=www.sinea.com -update -Logfile=/var/log/httpd/www.sinea.com-access_log
Create/Update database for config "/usr/local/etc/awstats/awstats.www.sinea.com.conf" by AWStats version 6.6 (build 1.887)
From data in log file "/var/log/httpd/www.sinea.com-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/www.sinea.com-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):
220.173.121.225 - - [03/Apr/2007:13:53:30 +0800] "GET /upload/_up_img/1077169374044954.gif HTTP/1.1" 200 104312
Setup ('/usr/local/etc/awstats/awstats.www.sinea.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
3 [报告]
发表于 2007-04-03 16:22 |只看该作者
This means each line in your web server log file need to have "combined log format" like this:

修改httpd.conf里面的CustomerLog后面为需要的

论坛徽章:
0
4 [报告]
发表于 2007-04-03 17:06 |只看该作者
现在好了,为什么不能自动刷新呀

论坛徽章:
0
5 [报告]
发表于 2007-04-03 17:08 |只看该作者
我想让他每小时刷新一次数据:
* 01 * * * /usr/local/awstats/tools/awstats_updateall.pl now -configdir=/usr/local/etc/awstats > /dev/null 2>&1
这样写对吗?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
6 [报告]
发表于 2007-04-03 23:50 |只看该作者
这个看你的系统的规则。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP