As promised in Chapter 7, here are the steps to get AWStats up and running with our Lighttpd. AWStats requires Perl and a few free kilobytes on our server. As the CGI interface is used only to update the statistics, which should not be done very often (actually once per hour or even per day is usually sufficient), serving AWStats via mod_cgi
should give us enough performance. However, if we want to use FastCGI (which would remove the setup time for the Perl interpreter sitting in RAM), Chapter 10 has a description on how to port Perl CGI
to CGI::FastCGI
.
Now, we can configure AWStats by copying the awstats.model.conf
to awstats.ourdomain.conf
. Search the following configuration options and change them to match our Lighttpd configuration (long option names have been split into multiple lines for the sake of brevity, while in the awstats.ourdomain.conf
, they appear on a single line):
Option name |
Description |
Value to set (example) |
---|---|---|
LogFile |
This is where the log file should be, depending... |