Inroduction

I keep having to setup this on new domains and can't ever remember what I'm suppose to do. So here's my cheat sheet.

Setup

I'm not using the emerge awstats method. Gentoo has a wacky method of dealing with things like awstats. So I just downloaded it and installed it to /opt/awstats then created /opt/awstats/data for all my data files. Awstats wants it's config files to be in /etc/awstats so I put them there. I might get around to forcing it to look in /opt/awstats/etc at some point later.

New Virtual Domain Setup

* Create a folder /opt/awstats/data for the new domain. * copy config file from seperate domain for new virtual domain in /etc/awstats * edit the file and change all the paths and domain names. * edit /etc/cron.daily/awstats and add a line for new virtual domain

All done.

Totally not wrote!

http://aliandcedar.com/cedar/2005/03/15/install-awstats-on-gentoo/

Emerge AWSTATS

webapp-config -I -h sqls.net -d /awstats/ awstats 6.5-r1 » /etc/apache2/modules.d/10_awstats.conf

-I tells webapp config to install. -h is the FQDN of the virtual host you are installing this application on. If you only have a single website you could use localhost. -d is the directory inside your web folder that will be created and used for awstats. I use a non-standard folder “stats” to reduce trolling ever so slightly. the next paramater tells webapp-config what application it is installing, in this case it is awstats. the last parameter tells webapp-config which version of awstats to install. You must tell it regardless of rather you have more then one version installed. Finally the output is piped to a config file in your apache modules folder. The idea is apache needs this output as part of it's config. You could use another method if you wish but I find this is simple and clean. You will need to edit the 10_awstats.conf file. Remove the top and bottom few lines that are not part of the configuration. (you should be able to tell). And review the 100 or so lines of editable options. Once again, I've made slight modifications to reduce trolling ever so slightly. I changed the Alias names form awstats to stats. Next we need to create a configuration for awstats for your virtural host.

cp /etc/awstats/awstats.model.conf /etc/awstats/awstats.sqls.net.conf

Review the new file and make appropriate changes. I ended up modifying the LogFile path, SiteDomain, HostAliases, DNSLookup, DirData, DirIcons, AllowToUpdateStatsFromBrowser, AllowFullYearView, EnableLockForUpdate, DefaultFile, LevelForWarmsDetection, I also loaded the following Plugins: tooltops

 
howto/awstats_on_gentoo_with_virtual_hosts.txt · Last modified: 2010/08/25 10:26 by bruce
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki