![]() Next, we need to set up the directory that houses the database and run an update to make sure all is in place and happy: cgi-bin]# mkdir cgi-bin]# perl -update -config=Update for config "/etc/awstats/awstats.With data in log file "/path/to/apache/logs/-access_log". To make matters worse, the Alias is global, not specific to a single virtual domain. What they do is tie requests for directories off of root on your domains to some directory that isn’t in your web root. Generally, be very aware of these Alias directives for other programs as well. We took all of them out and copied the files manually. Watch out for the Alias directives that the configure program adds to nf. This specifies the Apache access log file and purges that file after awstats is run. The main changes we needed to make in /etc/awstats/awstats.were: LogFile="/path/to/apache/logs/-access_log" > perl -update -config=You can also read your statistics for 'with URL: You can then manually update your statistics for 'with command: usr/local/awstats/tools/awstats_ nowĪ SIMPLE config file has been created: /etc/awstats/awstats.You should have a look inside to check and change manually main parameters. usr/local/awstats/Or if you have several config files and prefer having only one command: You can do it manually by adding the following command to your cron: Sorry, does not support automatic add to cron yet. > Create config file '/etc/awstats/awstats.Config file /etc/awstats/awstats.created. In which directory do you plan to store your config file(s) ?ĭirectory path to store config file(s) (Enter for default): Your web site, virtual server or profile name: What is the name of your web site or profile analysis ? > Need to create a new config file ?ĭo you want me to build a new AWStats config/profileįile (required if first install) ? y > Update model config file '/etc/awstats/' > Check and complete web server config file '/path/to/apache/conf/nf'Īdd 'Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"'Īdd 'Alias /awstatscss "/usr/local/awstats/wwwroot/css/"'Īdd 'Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"'Īdd 'ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"'ĪWStats directives added to Apache config file. > Running OS detected: Linux, BSD or Unixįound Web server Apache config file '/path/to/apache/conf/nf' Read the AWStats documentation (docs/index.html). You want to 'understand' all possible ways to use AWStats. You need to analyze load balanced servers log files, You want to analyze mail or ftp log files instead of web log files, You want to analyze downloaded log files without web server, In AWStats setup, however following the step by step manual setupĭocumentation (docs/index.html) is often a better idea. You can try to use it to let it do all that is possible ![]() This tool will help you to configure AWStats to analyze statistics for AWStats awstats_configure 1.0 (build 1.6) (c) Laurent Destailleur. ![]() ![]() We used the RPM of AWStats and the default installer: awstats]# tools/awstats_ If you do this at the beginning, you will be able to hit your logs with a few entries by the time you finish configuring. Restart Apache to make the changes active, and get rid of the old format entries if you are changing: cat /dev/null > /path/to/apache/logs/access_log For instance: ErrorLog logs/-error_logĬustomLog logs/-access_log combined Note that your virtual hosts area needs to define combined as the log format as well. We used the standard combined log format: LogFormat "%h %l %u %t \"%r\" %>s %b \"%i\"" combined The first thing to adjust is the log format. We are doing this on a Red Hat Enterprise 4 box with Apache 2, so some items may be specific, but this is mostly generic. Well, web stats packages have certainly improved over the years, and we decided to implement AWStats on one of our servers. For years we have run our own homebrew web stats application out of frustration with currently available tools.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |