Jump to: navigation, search

Install and migrate awstats on Ubuntu 14.04 (adapted from

Awstats config

sudo apt-get install awstats
sudo scp*.conf /etc/awstats/

Apache config

Create file /etc/apache2/conf-available/awstats.conf

sudo emacs -nw /etc/apache2/conf-available/awstats.conf

with the content

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
AddHandler cgi-script .cgi .pl
<FilesMatch "">
AuthName "Login Required"
AuthType Basic
AuthUserFile /var/www/.htpasswd
require valid-user
sudo a2enconf awstats 
sudo a2enmod cgid
sudo scp /var/www/.htpasswd
sudo service apache2 restart

Cron job

sudo mkdir /root/bin
sudo scp /root/bin/
cd /etc/cron.d 
sudo scp  .
Personal tools