usr/bin/perl /usr/lib/cgi-bin/ -update -config= This process can be started manually by the command:
#Cgi bin awstats pl manual#
Data collection and statistics calculation Manual method
#Cgi bin awstats pl update#
The Debian awstats package includes the file /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh which starts the update of statistics before log rotation. Log rotation (logrotate)ĭata collection must be done before the automatic logs are rotated, otherwise you will lose data. You can find all awstat configuration directives on the official website. It’s necessary to create the configuration for the website to be analyzed: Target domain, location of the access.log file, as well as its domain Aliases (e.g. The AWSTATS script is a program written in Perl, executed by the apache2 server. ) and build the related Apache virtualhost.
#Cgi bin awstats pl install#
This will allow yourself and thus your cronjob to execute " ".(**) Translated with AWSTATS and GeoIP perl installation apt-get install apache2 awstats libgeoip1 libgeoip-devĭetermine the domain name that will be used to consult the statistics (e.g. You need to make sure that permissions are set accordingly: Using " awstats_" will call " "Īnd run an update for all config-files to be found in the Now -awstatsprog=$HOME/awstats/cgi-bin/ -configdir=$HOME/awstats/cgi-bin/ Of " awstats_", a tool that comes withĪWStats, by choosing this alternative cron job (withoutġ5 4 * * * perl $HOME/awstats/tools/awstats_ If you have many config files, adding lots of cron jobs may Make sure there is a trailing empty line at the end of yourĬrontab file (after your last command-line).
Your config file (for your dog add another cronjob). This cron job will update AWStats at 4.15am on a daily basis. As discussed before, I suggest updating on a dailyġ5 4 * * * perl $HOME/awstats/cgi-bin/ In order automatically update AWStats, you will need to # perl /home/jsmith/awstats/wwwroot/cgi-bin/ -config=mysite -update -showcorrupted from cron This works only if you have SSH access or you do it locally. Once the update occurs you will be able to see the information Link then check AllowToUpdateStatsFromBrowser in your config This sets the month andĬlick the 'update now' button at the top. On the serverĮnter the URL to your program and the name of theĪ generic AWStats screen should show up. Txt file in the statdata directory is updated or created.
Update the database before creating the reports. The mytools batch files use awstats_ toĬreate traffic reports. Screen by selecting the corresponding Reported period month and Have to be updated again it can be viewed in the main AWStats Once a monthly database file has been updated, it does not (specified in config's LogFile entry), parses it, and creates/updates a Regardless of where invoked, the update process reads the log file The database directory is specified in the config file's When aĭatabase is updated AWStats creates a backup with the.
Have made the AWStats database in the statdata directory. Needs to be created/updated before any statistics can be viewed.
The awstats database, which is really a collection of text files,