[TYPO3] [Typo3] HOWTO: Configure Awstats for Multiple Domains & BE Users
Scotty C
superscotty19 at yahoo.com
Thu Jan 26 06:10:00 CET 2006
Hello fellow Typo3 users!
Thanks to this list, I can say that I have
successfully integrated Awstats into Typo3, with full
support for multiple virtual domains. As a result, I
submit this formal howto that worked for me:
1.) GET AWSTATS
----------------
- Connect to the online extension repository and
install cc_awstats
2.) CONFIGURE AWSTATS
----------------------
- Edit localconf.php or use the Install-Tool and click
"All Configuration" to modify this entry:
$TYPO3_CONF_VARS["FE"]["logfile_dir"] =
my_logfile_dir/
(Note: I set this to log/ as the log/ directory is
pre-packaged with Typo3 and hence writable by the
webserver)
- Create empty logfiles for each domain inside the
logfile directory you specified above. For example, to
create a logifle for the stormat.ca domain, do this
(using Linux):
cd log
touch stormat-ca.log
# the following is for the lighttpd web server
# You can use apache:apache if necessary
chown lighttpd:lighttpd stormat-ca.log
chmod 664 stormat-ca.log
- Add the following TypoScript to the template of each
site you wish to monitor. For example, inside the
stormat.ca site, I would place:
config {
stat = 1
stat_apache = 1
stat_apache_logfile = xpressxperience.log
}
- In the Tools menu, click on the Awstats module and
edit the logfile confuration for the domain you
created (i.e. you should see a link to, for example,
stormat-ca.log) by clicking on it. You will see a text
box next to the file. In that textbox, type the name
of the domain that the logfile refers to. For example:
stormat-ca.log: www.stormat.ca,stormat.ca
3.) GET AWSTATS ENHANCER
-------------------------
- Connect to the online extension repository and
install gst_awstatsenhancer
4.) CONFIGURE BACKEND USERS TO VIEW AWSTATS ENHANCER
-----------------------------------------------------
- In the "User Admin" menu, edit the permissions of
any backend user to allow for Web > Statistics
That's it! I hope this works for you, and if you find
any inconsistencies or need any help (which hopefully
I can provide), just let me know!
-Scott.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the TYPO3-english
mailing list