Apache Service Awstats Analysis System

Source: Internet
Author: User

One, Apache deployment Awstats Analysis System

    1. Build the Awstats system (software awstats-7.0.zip)

Extract

Unzip Awstats-7.0.zip

Move to HTTPD's installation directory

MV Awstats-7.0/usr/local/awstats


cd/usr/local/awstats/tools/

chmod +x awstats_configure.pl

./awstats_configure.pl


2. Setting up a profile for the statistics site

Do you want me to setup Apache to write ' combined ' log files [y/n]? Y Select y

Do you want me to build a new AWStats Config/profile

File (required if first install) [y/n]? Y Select y

Your Web site, virtual server or profile name:

> www.localhost.com enter the monitored domain name

Directory path to store config file (s) (Enter for default):

> Direct return


3. Modify the Site statistics configuration file

Vim/etc/awstats/awstats.www.localhost.com.conf

Wuyi logfile= "/usr/local/httpd/logs/access_log"

203 Dirdata= "/var/lib/awstats"

Mkdir-p/var/lib/awstats


4. Perform log analysis to set up cron scheduled Tasks

[Email protected] tools]# chmod +x awstats_updateall.pl

[Email protected] tools]#./awstats_updateall.pl

Crontab-e set up Scheduled Tasks

*/5 * * * */usr/local/awstats/tools/awstats_updateall.pl executed every 5 minutes

[[email protected] tools]#/etc/init.d/crond start

[Email protected] tools]# chkconfig--level Crond on


5. Visit Awstats

Http://192.168.116.111/awstats/awstats.pl?config=www.localhost.com

No DNS set up to access by domain name

Vim/etc/hosts

192.168.116.111 www.localhost.com

or visit http://www.localhost.com/awstats/awstats.pl?config=www.localhost.com

Access Success!!!

This article from the "Smile Habit of You" blog, declined reproduced!

Apache Service Awstats Analysis System

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.