Awstats: Difference between revisions
(Created page with '== Set up Awstats on Alpine Linux == This document will be a quick c/p guide to setup awstats log analyzer on Alpine linux. What we will install is the following: *Lighttpd *A...') |
No edit summary |
||
Line 45: | Line 45: | ||
-----> Running OS detected: Linux, BSD or Unix | -----> Running OS detected: Linux, BSD or Unix | ||
Do you want to continue setup from this NON standard directory [yN] ? y | Do you want to continue setup from this NON standard directory [yN] ? '''y''' | ||
-----> Check for web server install | -----> Check for web server install | ||
Config file path ('none' to skip web server setup): none | Config file path ('none' to skip web server setup): '''none''' | ||
-----> Need to create a new config file ? | -----> Need to create a new config file ? '''y''' | ||
-----> Define config file name to create | -----> Define config file name to create | ||
Example: www.mysite.com | Example: www.mysite.com | ||
Example: demo | Example: demo | ||
Your web site, virtual server or profile name: awstats | Your web site, virtual server or profile name: '''awstats''' | ||
-----> Define config file path | -----> Define config file path | ||
>/etc/awstats | >'''/etc/awstats''' | ||
Press ENTER to continue... | Press ENTER to continue... |
Revision as of 18:05, 29 June 2010
Set up Awstats on Alpine Linux
This document will be a quick c/p guide to setup awstats log analyzer on Alpine linux. What we will install is the following:
- Lighttpd
- Awstats
Installing Lighthttpd and Awstats
Add Bakcports Repositories
cp /etc/apk/repositories /etc/apk/repositories.old echo -e "http://build.alpinelinux.org:8009/backports/1.10/" >> /etc/apk/repositories
Installing Lighthttpd and Awstats
apk add lighttpd awstats -U --allow-untrusted
Removing Bakcports Repositories
cp /etc/apk/repositories.old /etc/apk/repositories rm /etc/apk/repositories.old
Configuring Lighttpd
Edit lighttpd.conf
nano /etc/lighttpd/lighttpd.conf
Uncomment line:
include "mod_cgi.conf"
Change the base server root folder
#server.document-root = var.basedir + "/htdocs" server.document-root = "/usr/lib/awstats")
Configuting Awstats
Run awstats_configure.pl
awstats_configure.pl
-----> Running OS detected: Linux, BSD or Unix Do you want to continue setup from this NON standard directory [yN] ? y -----> Check for web server install Config file path ('none' to skip web server setup): none -----> Need to create a new config file ? y -----> Define config file name to create Example: www.mysite.com Example: demo Your web site, virtual server or profile name: awstats -----> Define config file path >/etc/awstats Press ENTER to continue... Press ENTER to finish...
Edit lighttpd.conf
nano /etc/awstats/awstats.awstats.conf Search the line LogFile=" " and configure your log path and file. e.g. LogFile="/va/log/messages"
Start http server and add to boot
/etc/init.d/lighttpd start && rc-update add lighttpd default
Browse
http://AWSTATS_IP_NUMBER/cgi-bin/awstats.pl?config=awstats
Note: Awstats is not working yet with dansguardian logs.
EOF