yum install awstats
(1/3): perl-Geo-IP-1.38-1.el5.rf.x86_64.rpm (2/3): geoip-1.4.6-1.el5.rf.x86_64.rpm (3/3): awstats-7.0-2.el5.rf.noarch.rpm
cd /etc/awstats/ cp awstats.model.conf awstats.aremgr.conf cp awstats.model.conf awstats.ssl_svn.conf
: SiteDomain="aremgr.ichiayi.com" :
: LogFile="/var/log/httpd/ssl_access_log" : LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd : SiteDomain="aremgr-vpn.ichiayi.com" : ShowAuthenticatedUsers=1 :
: <Directory /var/www/awstats/> DirectoryIndex awstats.pl Options ExecCGI # order deny,allow # deny from all # allow from 127.0.0.1 </Directory> :
#!/bin/bash if [ -f /var/log/httpd/access_log ] ; then exec /usr/bin/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl" >/dev/null fi exit 0