:: Awstats on CentOS
:: What is Awstats
AWStats is an open source Web analytics reporting tool, suitable for analyzing data from Internet services such as web, streaming media, mail and FTP servers. AWStats parses and analyzes server log files, producing HTML reports. Data is visually presented within reports by tables and bar graphs. Static reports can be created through a command line interface, and on-demand reporting is supported through a web browser CGI program. – wikipedia
:: How to install Awstats on Linux CentOS
+ installing awstats
yum install awstats mod_perl
+ configure awstats
cd /etc/awstats/ cp awstats.localhost.localdomain.conf awstats.yourdomainame.com.conf vi awstats.yourdomainame.com.conf ## change on this line, like: LogFile="/var/log/httpd/access_log" LogFormat=1 SiteDomain="yourdomainame.com" ## if you want allow update from browser AllowToUpdateStatsFromBrowser=1
+ change permission
o if you are enable AllowToUpdateStatsFromBrowser
chmod 777 -R /var/log/httpd/
o allow httpd user to access awstats
chown apache.apache /etc/awstats/* chown apache.apache /var/www/awstats
o allow everyone to access awstats
vi /etc/httpd/conf.d/awstats.conf ## change allow from on awstats vhost directory #allow from 127.0.0.1 # cange to: allow from all
+ restarting httpd
/etc/init.d/httpd restart
:: Testing
Open your awstats via browser on:
//yourdomainame.com/awstats/awstats.pl?config=yourdomainame.com
:: Links
+ Google