Software Download Address: http://awstats.sourceforge.net/
I'm downloading a stable version of awstats-6.95.tar.gz.
Upload the download file to the server first I used to put it under the/opt.
First, unpack the software package:
Tar zxvf awstats-6.95.tar.gz
And put it under the/usr/local/.
MV Awstats-6.95/usr/local/awstats
Secondly, execute the Awstats_configure.pl Configuration Wizard in the Tools directory to create a new statistic
[Root@www tools]# Perl awstats_configure.pl
-----AWStats Awstats_configure 1.0 (build 1.8) (c) Laurent destailleur-----
This tool would help you to the Configure AWStats to analyze statistics for
One Web server. You can try to use it for let it does all this is possible
In AWStats Setup, however following the "step" by step Manual setup
Documentation (docs/index.html) is often a better idea. Above All if:
-You are are not a administrator user,
-Want to analyze downloaded log files without Web server,
-Want to analyze mail or FTP log files instead of Web log files,
-Need to analyze load balanced servers log files,
-Want to ' understand ' all possible ways to use AWStats ...
Read the AWStats documentation (docs/index.html).
---> Running OS detected:linux, BSD or Unix
---> Check for Web Server install
Enter full config file path of your WEB server.
Example:/etc/httpd/httpd.conf
Example:/usr/local/apache2/conf/httpd.conf
Example:c:\program Files\apache group\apache\conf\httpd.conf
Config file path (' None ' to skip Web server Setup):
>none #因为是分析nginx日志
Your Web server config file (s) could not is found.
You'll need to the setup your Web server manually to declare AWStats
Script as a CGI, if you are want to build reports dynamically.
AWStats Setup documentation (file docs/index.html)
-----> Update Model config file '/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf '
File awstats.model.conf updated.
-----> Need To create a new config file?
Do and want me to build a new AWStats Config/profile
File (required if install) [y/n]? Y # did not find a Web configuration file create a Select Y
-----> Define Config file name to create
What is the name of your Web site or profile?
Example:www.mysite.com
Example:demo
Your Web site, virtual server or profile name:
>www.test.com #你网站访问的网址
-----> Define Config file path
In which directory your config file (s)?
Default:/etc/awstats
Directory path to store config file (s) (Enter for default):
> # Default configuration file path/etc/awstats carriage return
-----> Create config file '/etc/awstats/awstats.www.test.com.conf '
Config file/etc/awstats/awstats.www.test.com.conf created.
-----> ADD Update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
Can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl-update-config=www.test.com