1. Download the awstats and cronolog installation packages from the following websites: sourceforge. netprojectsawstatswww. cronolog. org2, extract and install files 1) The tarxzvfawstats-version.tgz is as follows: datadocsREADME. TXTtoolswwwroot (1) the default installation method is to enter the tools directory to run aws
1. Download awstats and cronolog packages from the following websites: http://sourceforge.net/projects/awstats/ http://www.cronolog.org 2. Unzip and install files 1) tar xzvf awstats-version.tgz as follows: data docs README. TXT tools wwwroot (1) the default installation method is to enter the tools directory to run aws
1. Download awstats and cronolog from the following websites
InstallPackage:
Http://sourceforge.net/projects/awstats/
Http://www.cronolog.org
2. Extract and
InstallFile
1) tar xzvf awstats-version.tgz is as follows:
Data docs README. TXT tools wwwroot
(1) Default
InstallMethod
Go to the tools directory and run the awstats_configure.pl file:
Perl awstats_configure.pl
Set awstats as prompted
Including: released directory,
ConfigurationSpecify the directory where the file is stored and other information. You can use the default settings.
(2) directly edit the httpd. conf file of apache and add the following content:
#
# Directives to allow use of AWStats as a CGI
#
Alias/awstatsclasses "/usr/local/awstats/wwwroot/classes /"
Alias/awstatscss "/usr/local/awstats/wwwroot/css /"
Alias/awstatsicons "/usr/local/awstats/wwwroot/icon /"
ScriptAlias/awstats/"/usr/local/awstats/wwwroot/cgi-bin /"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
#
# Options None
# AllowOverride None
# Order allow, deny
# Allow from all
#
RewriteEngine On
RewriteCond % {REQUEST_METHOD} ^ TRACE
RewriteRule. *-[F]
DocumentRoot "/usr/local/awstats/docs /"
ErrorLog/var/log/httpd/erro_awstat.log
CustomLog "|/usr/local/sbin/cronolog/var/log/httpd/access_awstat. % Y % m % d" combined
Options shortdes FollowSymLinks
AllowOverride All
Order allow, deny
Allow from all
2) tar xzvf cronolog-1.6.2.tar.gz
Cd cronolog-1.6.2
Configure
Make
Make install
InstallThe following two files are generated in the/usr/local/sbin directory:
Cronolog cronosplit
3. Modify the httpd. conf file of apache.
Set the file name for log generation:
CustomLog "|/usr/local/sbin/cronolog/var/log/httpd/access_awstat. % Y % m % d" combined
4. Edit
ConfigurationFile
By default, files are stored in the/etc/awstats directory. awstats + domain name + conf
Example: awstats.www.taiyu.com. conf
You can specify the domain name and log file in awstats.www.taiyu.com. conf.
SiteDomain = "www.taiyu.com"
LogFile = "/var/log/httpd/access_awstat. % YYYY-0 % MM-0 % DD-0"
5. generate data
Go to the ../awstats/wwwroot/cgi-bin/directory and execute the following statement:
./Awstats. pl-update-config = www.taiyu.com # www.taiyu.com is our domain name
6. view results
Http: // 192.168.2.252/awstats. pl? Config = www.taiyu.com