User:JimTittsler/Stats
From WikiEducator
We use http://meta.wikimedia.org/wiki/WikiStats to build usage statistics.
The basic recipe is:
cd /usr/local/mw-svn
mv AdminSettings.en.only.php AdminSettings.php
/usr/local/php/bin/php maintenance/dumpBackup.php --full >/usr/local/src/Wikistats/dumps/en-latest-pages-meta-history.xml
cd /usr/local/src/Wikistats/dumps
7z a en-latest-pages-meta-history.xml.7z en-latest-pages-meta-history.xml #OR bzip2 en-latest-pages-meta-history.xml
cd ..
./WikiCounts.pl -x -i dumps -o counts -l en -d 20081101
./WikiReports.pl -x -i counts -o reports -l en -d 20081101
mv AdminSettings.php AdminSettings.en.only.php