Installing AWStats 6.6

Source: Internet
Author: User
Tags geoip apache log maxmind

AWStats is a free powerful and personalized tool that brings advanced network, traffic, ftp or mail server statistical charts. it can analyze log files from various server tools, such as Apache log files (NCSA combined or common), WebStar, IIS (W3C ), proxy, WAP, Traffic Server, email server, and some FTP servers.

AWStats Official Website:Http://awstats.sourceforge.net/

Download AWStats from the official website. The latest version is 6.6.


# Tar zxvf awstats-6.6.tar.gz
# Music awstats-6.6 AWStats
# Mv AWStats/home/10235 // move the AWStats directory to the website root directory
# Cd/home/10235/AWStats/tools
# Perl awstats_configure.pl // configure AWStats

// Awststs is installed in the/usr/local/AWStats directory by default.
Do you want to continue setup from this non standard directory [YN]? Y

// Enter the configuration file path of your Web server and skip the Settings Using none
Config file path ('none' to skip Web Server SETUP ):
> None

Do you want me to build a new AWStats config/Profile
File (required if first install) [Y/n]? Y

Your web site, virtual server or profile name:
>Www.10235.com

// Press enter to use the default path/etc/AWStats
Directory path to store config file (s) (enter for default ):
>/Etc/AWStats

# Vi/usr/local/etc/AWStats/awstats.www.10235.com. conf // modify the default configuration file

// Specify the Log Path % YYYY-24 % MM-24 % dd represents today 20070513% YYYY-24 % MM-24 % DD-24 represents yesterday 20070512
Logfile = "/var/log/www/10235.% YYYY-24 % MM-24 % dd"

// Specify the log type w-web log m-Mail Log F-FTP log s-streaming log
Logtype = W

// Specify the log format 1-Apache combined logs 2-IIS
Logformat = 1

// Domain name and site alias bound to the website
Sitedomain ="Www.10235.com"
Hostaliases = "10235.comBlog.10235.com"

// Make sure that the directory has the write permission.
Dirdata = "/home/www/10235/AWStats/dirdata"

// Whether the browser is allowed to update the analysis
Allowtoupdatestatsfrombrowser = 1

# Crontab-E // set the scheduled task and update the analysis result every 59 minutes

59 ****/home/10235/AWStats/wwwroot/cgi-bin/AWStats. pl-Update-Config = www.10235.com

Access:Http://10235.com/awstats/wwwroot/cgi-bin/awstats.pl? Config = www.10235.com

Supplement: Configure geo-IP

Geo-IP C-API (Http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.2.tar.gz)
Geo-IP Perl-API (Http://www.maxmind.com/download/geoip/api/perl/Geo-IP-1.27.tar.gz)
GEO: ipfree (Http://search.cpan.org/author/GMPASSOS/Geo-IPfree-0.2/)

// Install geo-IP C-API:
# Tar xzvf GeoIP-1.4.2.tar.gz
# Cd GeoIP-1.4.2
#./Configure
# Make
# Make install

// Install geo-IP Perl-API:
# Tar xzvf Geo-IP-1.27.tar.gz
# Cd Geo-IP-1.27
# Perl makefile. pl
# Make
# Make install

// Install GEO: ipfree
# Tar xzvf Geo-IPfree-0.2.tar.gz
# Cd Geo-IPfree-0.2
# Perl makefile. pl
# Make
# Make install

# Vi/etc/AWStats. yourdomain. conf
Loadplugin = "geoipfree"

Update statistics and configurations. The correct national flag icon is displayed on the IP address of the country or region.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.