[TYPO3-windows] Setting up AWStats / cc_awstats on Windows 2003 / IIS6
Karl-Ernst Kiel
kekiel at kekiel.de
Tue May 2 16:51:07 CEST 2006
Hello!
I hope this "Mini-HOWTO" may be useful:
Setting up cc_awstats on TYPO3 Version 4, IIS 6 (Windows 2003 Server)
---------------------------------------------------------------------
1.) You need Perl.
A free Perl interpreter can be obtained from www.activestate.com
(ActivePerl).
2.) Install the cc_awstats Extension.
3.) Create a directory for your logfiles in the TYPO3 webroot, e.g.
"logfiles". This directory must be write-enabled for the webserver
process (IUSR_xyz...).
4.) Edit your localconf.php an add this line:
$TYPO3_CONF_VARS['FE']['logfile_dir'] = 'logfiles/';
(You may also use the install toll but the slash maybe written in a
wrong way ?!...)
5.) Add the following lines to you template:
config.stat = 1
config.stat_apache = 1
config.stat_apache_logfile = mylogfile.log
config.stat_mysql = 0
(Should be at the beginning of the Setup section!)
6.) After this (and clearing caches...) TYPO3 should already write a log
file "[Webroot]/logfiles/mylogfile.log".
7.) Edit "[Webroot]\typo3conf\ext\cc_awstats\awstats\awstats.pl". Change
the first line
#!/usr/bin/perl
to
#!C:\Perl\bin\perl.exe
(Set in your path to the Perl interpreter...)
8.) Select the AWStats Module in the TYPO3 Backend (I had to re-login to
have success...).
You should be able to configure the "mylogfile.log" an use AWStats now.
Good luck!
Karl-E.
More information about the TYPO3-windows
mailing list