How To Install and Configure Awstats Statistics in Fedora Core 6
AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers.
Take a look at this comparison table for an idea on features and differences between most famous statistics tools (AWStats, Analog, Webalizer,...).
Preparing anything:
1. Server with fedora os 6
2. Apache webserver running in the server
Installing Awstats using Yum
First login into your server with root access via putty
[code]$yum install awstats -y[/code]
Configuring Awstats to start collecting your website traffic
Example : www.testing.com
[code]$cd /usr/share/awstats/tools
$./awstats_configure.pl[/code]
----- AWStats awstats_configure 1.0 (build 1.6) (c) Laurent Destailleur -----
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail 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...
Read the AWStats documentation (docs/index.html).
-----> Running OS detected: Linux, BSD or Unix
-----> Check for web server install
Enter full config file path of your Web server.
Example: /etc/httpd/httpd.conf
Example: /usr/local/apache2/conf/httpd.conf
Example: c:\Program files\apache group\apache\conf\httpd.conf
Config file path ('none' to skip web server setup):
>/etc/httpd/conf/httpd.conf
-----> Check and complete web server config file '/etc/httpd/conf/httpd.conf'
AWStats directives already present.
-----> 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:
>www.testing.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 FOR DEFAULT]
-----> Create config file '/etc/awstats/awstats.www.testing.com.conf'
Config file /etc/awstats/awstats.www.testing.com.conf created.
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.testing.com
Or if you have several config files and prefer having only one command:
/usr/share/awstats/tools/awstats_updateall.pl now
Press ENTER to continue...
A SIMPLE config file has been created: /etc/awstats/awstats.www.testing.com.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'www.testing.com' with command:
> perl awstats.pl -update -config=www.testing.com
You can also read your statistics for 'www.testing.com' with URL:
> http://localhost/awstats/awstats.pl?config=www.testing.com
Press ENTER to finish...
Setting Up Crontab
[code]$crontab -e
5 * * * * /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.testing.com[/code]
Crontab will automatically execute every 5 minutes.
View your awstats statistics from this URL below:
[code]http://www.testing.com/awstats/awstats.pl?config=www.testing.com[/code]
Recent blog posts
|
Recent comments
|
Comments
hei... been busy
hei... been busy awhile.
what link do you want to share :)
thx
regards,
Sentono
Hello webmaster
Hello webmaster,
I would like to share with you a link, write to alarroste@mail.ru
Post new comment