Can someone please help me out with trying to set this up?
The install doc says "Edit the file config.php." The config.php says "BetterAWstats has an online config editor that you can use instead of editing this file". Which I assume leads me to the settings at {site}/admin/settings/bawstats.
The "AWstats icon directory" is filled in, and makes sense to me, since the icons were included with the module.
But if I leave the data, library, and language entries blank, I get
* AWstats data location "" is not a directory
* AWstats library location "" is not a directory
* AWstats language location "" is not a directory
Okay..... If I create the data, library, and language directories, ensure the permissions are good, and point the configuration to them, I get it accept the "sites/all/modules/bawstats/data". But for the other two?
* AWstats library directory "sites/all/modules/bawstats/library" does not contain necessary library files?
* AWstats language directory "sites/all/modules/bawstats/language" does not contain necessary language files?
So where are the library and language files? Or where can I get them from?
I've also gone through the AWstats website documentation, and much of that assumes that I'm working on a local Linux, Unix, or Windows Server web host.
Surely I'm doing something silly, yes?
Thanks, and Cheers,
//TB
Comments
Comment #1
anaru commentedI think there may be some confusion between awstats, bawstats and betterawstats. AWstats is a perl based web statistics CGI that has nothing to do with Drupal, but produces good web statistics data from web server logs. Bettweawstats is a PHP engine and CGI script that uses the AWstats data and renders/displays it in more interesting ways. Bettweawstats also has nothing to do with Drupal. Bawstats is a drupal module front end to betterawstats. I should have explained this better in the docs/install.drupal.txt file.
So, the config.php is code that belongs to betterawstats, i.e. not drupal, and when it says things like "BetterAWstats has an online config editor" it does mean betterawstats not bawstats. However, all the betterawstats configuration can be done with that file (which will effect how bawstats works, as it uses betterawstats as a backend).
The "AWstats icon directory" is filled in, and makes sense to me, since the icons were included with the module.
This is not the case. As described in the install.drupal.txt file, the icons are supplied as part of the AWstats perl package (under wwwroot/icon) and this icon directory must be copied into the module space. The location you copy this to is then configured as the "AWstats icon directory".
Okay..... If I create the data, library, and language directories
You do not create these directories, again these are provided as part of a running AWstats package. You have to have AWstats running and collecting statistics before the data dir will have any data in it though. This is nothing to do with bawstats or betterawstats, this is just getting AWstats working.
AWstats library directory "sites/all/modules/bawstats/library" does not contain necessary library files?
Again, this is because you created those directories, and in fact they won't contain the necessary AWstats library or data files. Once you have a working AWstats, set the "AWstats data location", "AWstats library location" and "AWstats language location" to their locations where AWstats is installed. This is described in the docs/install.drupal.txt file
I hope that helps clear up some misunderstandings?
Comment #2
maynard commentedI'm running into trouble as well. I have a Debian host running Apache 2, mysql, Drupal-6.1, and the default awstats that ships with Debian 4. Anyway, I've got awstats configured well enough as I'm collecting data and generating status html reports manually. I've got bawstats installed and the module turned on .. but no stats. And yes, I've gone to the configuration page in drupal and specified where the awstats db files (etc) are located. No luck.
Two questions:
1) Does bawstats want the db format in plain text or xml?
2) Should I have to manually edit /modules/bawstats/config.php? (I did, it did no good)
Thanks,
--M
Comment #3
anaru commentedThe xml issue has been passed upstream (support for this I think it is being worked on) and the help and setup in version 6.x-1 has been much improved. I hope this helps.
Comment #4
edeation commentedAnaru,
This module seems to be fine for me but I have the same problem than brewreview and for me the problem is still not fixed.
Can you simply give a tree example of a bawstats installation (regarding the four required AWstats paths)
Thank you
Comment #5
egfrith commentedI've written a new top-level README.txt file and simplified the installation a bit by removing the index.php file. Please download the latest dev version to try it out. I'm marking this as fixed, but please reopen if things don't work or the instructions aren't clear.
Comment #6
egfrith commentedP.S. I forgot to mention: you will need to install the Libraries API module from http://www.drupal.org/project/libraries before you upgrade BAWstats to the dev version.
Comment #8
seortiz commentedHello,
I am posting here in an attempt to offer you a view of someone who has never used statistics in a site before, but has spent quite a long time reading documentation and trying it. Hopefully this can improve the README/config.php files with an example and a bit of extra documentation :-)
I am having some trouble using this module. I found clear enough in README file that this module needs AWstats working prior to being able to see anything in Drupal.
On the other hand, I see that Drupal module is a different front-end for BetterAWstats but... do I need BetterAWstats installed to make it work? This is not clear to me.
At the moment, I have an Ubuntu server with AWstats working nicely. I can access them through my browser :-) I have also installed bawstats-1.1 module (and its "library" requirement). I have even configured the paths in the module settings... but still no luck!
Ubuntu/Debian packages split awstats on several directories, so what I have is the following:
* General site information (renamed for this post):
* Awstats is configured by Ubuntu as follows:
* bawstats module configuration:
* Bawstats module settings in Drupal: no complaints.
* config.php (Please note that, apart from "path_lib" and "path_lang", I dont' have a clear idea about what are the expected paths / URLs):
That's it!
Thanks!
Comment #9
egfrith commentedHello seortiz,
sorry for the delay in replying - I have been very busy. Thanks for taking the trouble to post comments on the understandability of the instructions. I'll try to incorporate your comments into the next iteration of the README and config files.
Comment #10
BenK commentedKeeping track of this thread...
Comment #11
izmeez commentedsubscribing. Sorry to say but I also found the instructions difficult to follow and decided to take a step back from it after some failed attempts.
Comment #12
egfrith commentedApologies for the long delay here. I have modified the README.txt file so that
(a) There are clearer instructions about how to install AWStats in the first place, including under Debian and Ubuntu
(b) There are clearer instructions about what to set the various directories to, including under Debian and Ubuntu.
It is confusing that some configuration information appears twice, once in the config.php file and once in the Drupal database. The database information overrides the config.php information. I think this duplicated information should be stripped out of config.php; I will set up a separate task to deal with this.