mwalling wrote:
AWStats can be run as a cron job, generating static files
mwalling's suggestion would be more secure. I've done a fair bit of Perl programming and the awstats code (at least the last time I looked at it) wasn't something I wanted to run as a CGI.
Not to start a debate about them here, but the Google Analytics terms of service are actually pretty decent. The biggest downside to me is the delay before stats are available.
If you can get over the JavaScript part, you might try Mint (commercial) or Piwik (open source), both of which would keep you in control of your data but provide more functionality than awstats.