写到这里,基本上awstats就配置完成了,最后一个步骤:跟新awstats。
“开始”--->“运行”--->“cmd”启动DOS工具,跳转目录到你的perl安装目录,找的perl.exe文件,进行最后的更新工作。
E:/Perl/bin>perl E:/AWStats/wwwroot/cgi-bin/awredir.pl - update -config=demo
----- awredir 1.2 (build 1.12) (c) Laurent Destailleur -----
This script is absolutely not required to use AWStats.
It's a third tool that can help webmaster in their tracking tasks but is
not used by AWStats engine.
This tools must be used as a CGI script. When called as a CGI, it returns to
browser a redirector to tell it to show the page provided in 'url' parameter.
So, to use this script, you must replace HTML code for external links onto your
HTML pages from
<a href="Linkhttp://externalsite/pagelinked">Link</a>
to
<a href="http://mysite/cgi-bin/awredir.pl?key=ABCDEFGH&url=http://externalsite/page
nked">Link</a>
For your web visitor, there is no difference. However this allow you to track
clicks done on links onto your web pages that point to external web sites,
because an entry will be seen in your own server log, to awredir.pl script
with url parameter, even if link was pointing to another external web server.
*************************************************************************************
好了,到这里我们的安装配置工作已经完成,让我们来看看安装的结果怎么样。打开浏览器,输入
http://localhost/awstats/awstats.pl?config=demo,提示的是:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
......