Awesome tutorial. It got me going pretty quickly. Here's a quick and dirty update -- I think some packages have changed since the original tutorial. I did this as root, and am just listing the commands since the descriptions above were so good! (March 25, 2005).
# apt-get install awstats
# cp /usr/share/doc/awstats/examples /usr/local/awstats
# cd usr/local/awstats
# mkdir wwwroot
# mkdir wwwroot/cgi-bin
# gunzip awstats.model.conf.gz
# mv awstats.model.conf wwwroot/cgi-bin
# ./awstats_configure.pl
/etc/apache2/apache2.conf
y
foo.com
{ENTER}
{ENTER}
{ENTER}
# ln -s /usr/local/awstats/css/ wwwroot/
# ln -s /usr/share/awstats/* wwwroot/
# ln -s /usr/lib/cgi-bin/awstats.pl wwwroot/cgi-bin/
# chown -R --dereference www-data:www-data wwwroot
# chown -R --dereference www-data:www-data /var/lib/awstats
# chown root:www-data /var/log/apache2/access.log
In /etc/apache2/apache2.conf, find the section starting with
<Directory "/usr/loacl/awstats/wwwroot">, and put a # in front of the line "Options None" it should look like:
<Directory "/usr/local/awstats/wwwroot">
# Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# /etc/init.d/apache2 reload
visit:
http://foo.com/awstats/awstats.pl?config=foo.com
Bookmarks