Your Webpage Stats: Difference between revisions

Jump to navigation Jump to search
Incorrect
mNo edit summary
(Incorrect)
Line 29: Line 29:
Set the 'SiteDomain' option to 'SiteDomain="www.redbrick.dcu.ie"'
Set the 'SiteDomain' option to 'SiteDomain="www.redbrick.dcu.ie"'


Set the 'LogFile' option to 'LogFile="/local/web/logs/MM-0/%DD-0-combined_log"'.
Set the 'LogFile' option to 'LogFile="/local/web/logs/%MM-0/%DD-0-combined_log"'.


If you want to gather stats for more than a day, say the whole month, then replace the 'LogFile' option with this: 'LogFile="/pathtotools/logresolvemerge.pl /local/web/logs/MM-0/*-combined_log |"'. Replace 'pathtotools' to point to where you installed the awstat tools directory. Be warned, this will slow down the update process by a few minutes. BTW, before 'logresolvemerge.pl' will run, you'll have to change the permissions to excutable, i.e. 'chmod 755 /pathtotools/logresolvemerge.pl'.  
If you want to gather stats for more than a day, say the whole month, then replace the 'LogFile' option with this: 'LogFile="/pathtotools/logresolvemerge.pl /local/web/logs/MM-0/*-combined_log |"'. Replace 'pathtotools' to point to where you installed the awstat tools directory. Be warned, this will slow down the update process by a few minutes. BTW, before 'logresolvemerge.pl' will run, you'll have to change the permissions to excutable, i.e. 'chmod 755 /pathtotools/logresolvemerge.pl'.  
Line 47: Line 47:
Make sure the permissions are correct on the awstats.pl script. 'chmod 755 /pathtoawstats/awstats.pl'.
Make sure the permissions are correct on the awstats.pl script. 'chmod 755 /pathtoawstats/awstats.pl'.


Now, as per the original instructions for [http://awstats.sourceforge.net/ AWStats], you can do a initial update of the logs (i.e. 'awstats.pl -config'www.redbrick.dcu.ie -update'). This must be done on 'deathray' just like the configure script. This will compile the stats from the logs selected by the 'LogFile' option.
Now, as per the original instructions for [http://awstats.sourceforge.net/ AWStats], you can do a initial update of the logs (i.e. 'awstats.pl -config=www.redbrick.dcu.ie -update'). This must be done on 'deathray' just like the configure script. This will compile the stats from the logs selected by the 'LogFile' option.


You can then generate static html pages or load it all up dynamically as per the awstat setup documentation.
You can then generate static html pages or load it all up dynamically as per the awstat setup documentation.

Navigation menu