search | index | tags | login/register

awstats (by damian)

==== Awstats ====

* Used for the apache web statistics
* apt-get install awstats
* Config: /etc/awstats

 

===== apache awstats.conf =====

* Adjust /etc/apache2/conf.d/awstats.conf:
Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
* /etc/init.d/apache2 reload

===== restrict access =====

* .htaccess
/usr/lib/cgi-bin/.htaccess
Usually a link to /etc/apache2/htaccessLDAP

===== site awstats.conf =====

* for each site (replace pc-5413.ethz.ch with other sites):
cp /etc/awstats/awstats.conf /etc/awstats/awstats.pc-5413.ethz.ch.conf
* modify awstats.pc-5413.ethz.ch.conf:
LogFile="/var/log/apache2/access.log"
SiteDomain="pc-5413.ethz.ch"
* manually run update of statistics
sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=pc-5413.ethz.ch
* add site update to run automatically: /etc/cron.d/awstats. set permissions: pruefen dass /var/log/apache2 logfiles von cron-user lesbar sind

Tags:
#apache #apache2 #awstats #config #configuration #doc #how-to #howto #internet #linux #script #server #site #statistics #stats #system #web #webserver #website #www

Info:
Attribute(s): Public
Created: 12.02.2012 23:42   Total Views: 347
Last Changed: 05.04.2013 12:58   Total Changes: 3
Δt = 0.050939083099365s