Use Apache to build Web Services (iv) deployment of Awstats Web Analytics System

Source: Internet
Author: User
Tags web services

In the HTTPD server's access log file Access_log, a large number of client access information is recorded, and by analyzing this information, the Web site's access can be understood in a timely manner. But because the Access_log file records too much information, look very inconvenient, so we use the Awstats analysis system to generate graphical interface view.

Awstats is an open source log analysis tool developed using the Perl language that can be used not only to analyze the access logs of Apache Web servers, but also to analyze log information for services such as Samba, VSFTPD, and IIS. With scheduled task services such as Crond, the growing log content can be analyzed on a regular basis.

The Awstats package can be downloaded from the Http://awstats.sourceforg.net Web site.

1. Install Awstats Package

Awstats Package installation is very simple, only need to unpack the package after deployment to the HTTPD server in the "/usr/local/" directory.

[Root@localhost/] #unzip Awstats-7.0.zip

[Root@localhost/] #mv awstats-7.0/usr/lcoal/awstats

2, for the site to be counted to establish a configuration file

When using the Awstats system, the system supports log files that count multiple Web sites, usually with the site name to distinguish between different sites. Therefore, before performing log file analysis, you need to establish a site statistics profile for each Web site, with the help of the awstats_configure.pl script provided by the Awstats program to simplify the creation process.

[Root@localhost/] #cd/usr/lcoal/awstats/tools/

[]root@localhost tools]#./awstats_configure.pl

It will then enter an interactive configuration process that will check the Awstats installation directory, httpd service configuration path, logging format, and other system environments, and prompts the user to specify the site name and set the profile path.

1 specifies the path to the httpd master configuration file

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.