我最近使用这些命令安装了awstats:
yum install awstats cd /usr/share/awstats/tools/ /usr/bin/perl awstats_configure.pl -> /etc/httpd/conf/httpd.conf -> www.ysend.com -> /etc/awstats /usr/share/awstats/tools/awstats_updateall.pl now mkdir /home/cron nano /home/cron/www.ysend.com.cron -> 10 * 1 * * /usr/share/awstats/tools/awstats_updateall.pl now crontab /home/cron/www.ysend.com.cron crontab -l nano /etc/httpd/conf.d/awstats.conf -> Allow from **MY IP** /etc/init.d/httpd restart
但是,当我访问我的Awstats页面时,它只显示1个唯一的访问者。 我有数百个独特的访问者。 有什么想法发生了什么事?
如果我尝试运行awstats_updateall.pl,它说:
从日志文件“/ var / log / httpd / access_log”中的数据…
我怎么能告诉它指向/home/ysend/custom.log?
自从我设置了awstats之后已经有一段时间了,但是我很确定在CONF文件中有一个指向你的日志位置的指令。 如果一个自定义的CONF文件使用一个包含的主CONF文件(就像我为我的服务器设置的那样),因为这个选项可以被设置在一个包含的文件中。