Due to the needs of the project, so these days on the use of Awstats to do some research, so the experience to share this time to everyone, I hope to give you a hint of help, there are omissions in the place, begged carefully, thank you.
First of all, explain the use and characteristics of Awstats, Awstats is an open source based on the Perl Web site Statistics tool.
It can be counted on the site's main information:
First, the number of visits, visits, page views, clicks, data flow, etc.
Second, accurate to the monthly, daily, hourly data
Third, visitor country
Four, the visitor IP
V. Statistics of Robots/spiders
Vi. duration of Visitors
Vii. statistical information for different files type
Viii. Statistics of Pages-url
Ix. Visitor Operating System browser and other information
X. Other information (search keywords, etc.)
To get to the point, awstats the way to use configuration. The environment here is Linux (Red Hat) and TOMCAT7
Download AWStats http://sourceforge.net/projects/awstats/files/AWStats/7.3/awstats-7.3.tar.gz/download
Put files in a random directory in Linux for example:/opt
Extract Files Tar–zxvf awstats-7.3.tar.gz
Locate the Tomcat directory, modify the Conf/web.xml configuration file, and cancel the comments for the CGI servlet and mapping
<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class> org.apache.catalina.servlets.cgiservlet</servlet-class>
<init-param>
<param-name> debug</param-name>
<param-value>0</param-value>
</init-param>
< init-param>
<param-name>cgiPathPrefix</param-name>
<param-value>web-inf/cgi</ param-value>
</init-param>
<init-param>
<param-name>passshellenvironment </param-name>
<param-value>true</param-value>
</init-param>
< load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
< servlet-name>cgi</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</ Servlet-mapping>
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/