[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [webstats/master] How to add a new host to AWStats and Webalizer
commit 82d951020e2dcdaff54753297d909053df92ba50
Author: Runa A. Sandvik <runa.sandvik@xxxxxxxxx>
Date: Sat Jan 7 15:19:27 2012 +0000
How to add a new host to AWStats and Webalizer
---
README | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/README b/README
index 61ef7d6..af52cae 100644
--- a/README
+++ b/README
@@ -78,4 +78,38 @@ The full example command would be:
Once this command runs without issues, add a crontab line for it.
+2. Setting up AWStats and Webalizer to process logs for a new host
+===================================================================
+2.1 AWStats
+===========
+
+Create a new configuration file for the host you wish to add:
+
+ $ cp configs/awstats.www.torproject.org.conf configs/awstats.metrics.torproject.org.conf
+
+Remember to edit line 51 (LogFile="") and line 153 (SiteDomain="") in the new
+configuration file. You may also want to look at the section starting on line
+922 for statistics to enable/disable.
+
+Once that's done, go into the awstats directory and create a symlink to the new
+configuration file:
+
+ $ cd awstats
+ $ ln -s ../configs/awstats.metrics.torproject.org.conf awstats.metrics.torproject.org.conf
+
+Edit logimport.sh and logarchive.sh to include the name of the new host in the hosts-section.
+
+2.2 Weablizer
+=============
+
+The first thing you need to do is create an output directory for the host, as
+well as a configuration file:
+
+ $ mkdir htdocs/webalizer/metrics.torproject.org
+ $ cp configs/webalizer.www.torproject.org.conf configs/webalizer.metrics.torproject.org.conf
+
+Remember to edit line 1 (LogFile), 2 (OutputDir), and 3 (HostName) in the new
+configuration file.
+
+Edit logimport.sh and logarchive.sh to include the name of the new host in the hosts-section.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits