1. First we make a site .
Then we get a package of awsatate and depressit in /usr/local/awstats directory
Cd /usr/local
Tar –xvf awstats
Cd /usr/local/awstats/tools
Perl awstats_configure.pl
-----> Check and complete web server config file '/etc/httpd/conf/httpd.conf'
Add 'Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"'
Add 'Alias /awstatscss "/usr/local/awstats/wwwroot/css/"'
Add 'Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"'
Add 'ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"'
Add '' directive
AWStats directives added to Apache config file.
-----> Update model config file '/etc/awstats/awstats.model.conf'
File awstats.model.conf updated.
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y
-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
>dhoom.com
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default): <Press [ENTER] key>
-----> Create config file '/etc/awstats/awstats.dhoom.com.conf'
Config file /etc/awstats/awstats.www.dhoom.com.conf created.
-----> Restart Web server with '/sbin/service httpd restart'
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
2. You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=dhoom.com
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue...
A SIMPLE config file has been created: /etc/awstats/awstats.dhoom.com.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'dhoom.com' with command:
> perl awstats.pl -update -config=dhoom.com
You can also read your statistics for 'dhoom.com' with URL:
> http://localhost/awstats.pl?config=dhoom.com
Press ENTER to finish...
Vi /etc/awsatats/awstats.dhoom.com.conf
logFile=”/var/www/html/dhoom.com/logs/access_log”
DirCdi=”/usr/local/awstats/wwwroot/cgi-bin”
DirIcon=”/var/local/awstats/wwwroot/icon”
DefaultFile=”index.php index.html index.htm”
cd /usr/local/awstats/wwwroot/cgi-bin
Perl awstats.pl –config=dhoom.com –update
cd /usr/local/awstats/tools
perl awstats_buildstaticpages.pl -config=manoj.com -update
-awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl
-dir=/var/www/html/manoj.com/awstats