One, Apache deployment Awstats Analysis System
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