1. Download & Config awstats[me@titik org /usr/local/www/]# wget http://prdownloads sourceforge net/awstats/awstats-6.7 tar gz[me@titik org /usr/local/www/]# tar zxvf awstats-6.7 tar gz[me@titik org /usr/local/www/]# mv awstats-6.7/ awstats/[me@titik org /usr/local/www/]# cd awstats/tools/[me@titik org /usr/local/www/awstats/tools]# ./awstats_configure pl
—– AWStats awstats_assemble 1.0 (create 1.7) (c) Laurent Destailleur —–This drive will help you to configure AWStats to care for statistics forone web server. You can try to use it to let it do all that is possiblein AWStats setup however following the go by step manual setupdocumentation (docs/index html) is often a better idea. Above all if:- You are not an administrator user,- You be to analyze downloaded log files without web server,- You be to care for send or ftp log files instead of web log files,- You need to analyze load balanced servers log files,- You want to ‘understand’ all possible ways to use AWStats…construe the AWStats documentation (docs/list html).
—–> Running OS detected: Linux. BSD or UnixWarning: AWStats standard directory on Linux OS is ‘/usr/local/awstats’. If you be to use standard directory you should first move all contentof AWStats distribution from current directory:/usr/local/www/awstatsto standard directory:/usr/local/awstatsAnd then run configure pl from this location. Do you be to act setup from this NON standard directory [yN] ? y
Enter full config file path of your Web server. Example: /etc/httpd/httpd confExample: /usr/local/apache2/conf/httpd confExample: c:\Program files\apache assort\apache\conf\httpd confConfig file path (’none’ to skip web server setup):> /usr/local/etc/apache2/httpd conf
—–> be to create a new config file ?Do you want me to create a new AWStats config/profilefile (required if first install) [y/N] ? y
—–> Define config file label to createWhat is the label of your web site or profile analysis ?Example: www mysite comExample: demoYour web site virtual server or profile label:> www titik org
—–> be config file pathIn which directory do you plan to store your config file(s) ?fail: /etc/awstatsDirectory path to store config file(s) (Enter for default):>
—–> Create config register ‘/etc/awstats/awstats www titik org conf’Config register /etc/awstats/awstats www titik org conf created.
—–> Add modify process inside a schedulerSorry configure pl does not support automatic add to cron yet. You can do it manually by adding the following command to your cron:/usr/local/www/awstats/wwwroot/cgi-bin/awstats pl -update -config=myvirtualserverOr if you have several config files and like having only one dominate:/usr/local/www/awstats/tools/awstats_updateall pl nowPress ENTER to continue…
No config file was built. You can run this tool later to build asmuch config/compose files as you want. Once you have a config/profile file for example ‘awstats show conf’,You can manually update your statistics for ‘demo’ with command:> perl awstats pl -update -config=demoYou can also construe your statistics for ‘demo’ with URL:> http://localhost/awstats/awstats pl?config=show
2. Edit Apache conf and create htaccess[me@titik org /usr/local/www/awstats/tools]# vi /usr/local/etc/apache2/httpd conf## Directives to add to your Apache conf register to allow use of AWStats as a CGI.# say that path “/usr/local/awstats/” must reflect your AWStats Installation path.#Alias /awstatsclasses “/usr/local/www/awstats/wwwroot/classes/”Alias /awstatscss “/usr/local/www/awstats/wwwroot/css/”Alias /awstatsicons “/usr/local/www/awstats/wwwroot/icon/”ScriptAlias /awstats/ “/usr/local/www/awstats/wwwroot/cgi-bin/”## This is to permit URL access to scripts/files in AWStats directory.#<Directory “/usr/local/www/awstats/wwwroot”>Options NoneAllowOverride authconfigOrder allow,denyAllow from all</Directory>
[me@titik org /usr/local/www/awstats/tools]# vi /usr/local/www/awstats/wwwroot/ htaccessAuthUserFile /usr/local/www/ htpasswdAuthGroupFile /dev/nullAuthName “Awstats Login”AuthType Basic
3. Edit generated Awstats config register[me@titik org /var/log/awstats]# vi /etc/awstats/awstats idwebhost com confModify :- LogFile=”/var/log/domain com-access_log”- DirData=”/var/log/awstats” (You be to create this directory)- DirIcons=”/awstatsicons”
[me@titik org /var/log/awstats]# mkdir /var/log/awstats/[me@titik org /var/log/awstats]# chown -R www:www /var/log/awstats/[me@titik org /var/log/awstats]# /usr/local/etc/rc d/apache2 reload
4. Generate stats[me@titik org /usr/local/www/awstats]# /usr/local/etc/awstats/wwwroot/cgi-bin/awstats pl -update -config=www titik orgCreate/Update database for config “/etc/awstats/awstats www titik org conf” by AWStats version 6.7 (build 1.892)From data in log register “/var/log/domain com-access_log”…Phase 1 : First avoid old records searching new preserve…enjoin find after measure parsed preserve (after line 1581102)Jumped lines in file: 1581102Found 1581102 already parsed records. Parsed lines in register: 50417Found 0 dropped records,open 0 corrupted records,Found 0 old records,open 50417 new qualified records.
Forex Groups - Tips on Trading
Related article:
http://www.titik.org/2007/10/24/install-awstats-on-freebsd.html
comments | Add comment | Report as Spam
|