AWstat

I”m attempting to install a fresh version of awstats

1) Downloaded version 6.95 from the site.

2) Unzip anywhere you want – awstats

Directory structure is

docs/

tools/

wwwroot/

  • cgi-bin/
  • classes/
  • css/
  • icon/
  • js/

3) File permissions appear to be correct

-rwxr-xr-x 1 root staff 7126 2010-06-06 17:10 awredir.pl

-rw-r–r– 1 root staff 60959 2010-06-06 17:10 awstats.model.conf

-rwxr-xr-x 1 root staff 624764 2010-06-06 17:10 awstats.pl

drwxr-sr-x 5 root staff 4096 2010-06-06 17:10 lang

drwxr-sr-x 2 root staff 4096 2010-06-06 17:10 lib

drwxr-sr-x 3 root staff 4096 2010-06-06 17:10 plugins

4) I have a site config file in /etc/awstats/awstats.www.domain.com.conf

5) My important settings in it are:

LogFile=”apache/logs/access_log”

LogFormat = 4

DirData=”awstats/data/”

DirCgi=”awstats/wwwroot/cgi-bin”

DirIcons=”awstats/wwwroot/icon”

AllowToUpdateStatsFromBrowser=0

CreateDirDataIfNotExists=1

6) Add the following with httpd.conf file ( or simply run awstats_configure.pl ) and restarted apache –

# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses “awstats/wwwroot/classes/”
Alias /awstatscss “awstats/wwwroot/css/”
Alias /awstatsicons “awstats/wwwroot/icon/”
ScriptAlias /awstats/ “awstats/wwwroot/cgi-bin/”

[ Here I just use dummy path, replace your awstats location correctly ]
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory “awstats/wwwroot”>
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName “Apache AWstat Access”
AuthType Basic
AuthUserFile awstats/awstats.users
Require valid-user
</Directory>

7) Then successfully run awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.domain.com

8) Run awstats/tools/awstats_buildstaticpages.pl -config=www.domain.com -update -awstatsprog=awstats/wwwroot/cgi-bin/awstats.pl -dir=awstats/data(Optional)

9) Now hit http://www.domain.com/awstats/awstats.pl?config=www.domain.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: