Multiple Sites

Help for using / installing BetterAWStats

Multiple Sites

Postby f0gax » 17 Feb 2009 00:24

I have used BAW for a while. I used to run several sites, then it was down to one.

While I had the multiple sites, BAW used to show them in a drop-down box on every site's BAW index page. I've just installed AWStats and BAW into a new site, run the update, and can see the update on the regular AWS pages. However, I can't seem to get BAW to show the drop-down for the multiple sites.

And when I view BAW on the new site, it only shows me the other site's stats.

I changed the paths for everything in both the aws config file and the BAW config.php. What else am I missing?

Thanks in advance.

--Jeff
f0gax
 
Posts: 3
Joined: 17 Feb 2009 00:21

Re: Multiple Sites

Postby Oliver » 17 Feb 2009 12:52

I am quite confused about what you wrote...

you have one site? multiples? Multiple sites on one server? Multiple sites on multiple servers?

If the folder you set for the datafiles contains datafiles for more than one sire (sitename in the filename & AWSTATS Settings has to be different), BAW will show multiple sites dropdown. If only one site can be found, there is no dropdown and only the site found will be displayed.

If you switch on debugging, you can see what site datafiles are found and where.
Oliver
BetterAWStats Creator/Admin
User avatar
Oliver
Site Admin
 
Posts: 147
Joined: 10 Mar 2008 19:09

Re: Multiple Sites

Postby f0gax » 17 Feb 2009 20:26

Two sites on one server.

The data files for both sites are in /[myhomepath]/awstats/data
Each site has a statistics directory ,/[myhomepath]/[sitedir]/statistics, that contains the AWS and BAW files.

If I browse to [http]://site1/statistics I get the BAW page for Site 1.
If I browse to ht tp://site2/statistics I get the BAW page for Site 1.
If I browse to ht tp://site2/statistics/awstats.site2.com.html I get the regular AWS page for Site 2, with the current stats.
(changed for URL warning)

In the past I've had multiple sites on this same server and got the drop down. I don't remember having to add anything to any configs to get that though.

Debug results:
Notice: Undefined index: top_x in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 123
Notice: Undefined index: top_x in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 169
Notice: Undefined index: max_chart_items in /[myhomepath]/[site2dir]/statistics/modules/render_htmlchart.inc.php on line 53
Notice: Undefined index: chart_titles in /[myhomepath]/[site2dir]/statistics/modules/render_htmlchart.inc.php on line 167
(previous 2 lines repeat quite a bit)
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1303
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1323
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1345
Notice: Undefined index: domain_lvls in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1361
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1380 (repeats)
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1253
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1273 (repeats)
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1414
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1432 (repeats)
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1456
Notice: Undefined index: domain_lvls in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1469
Notice: Undefined index: favicon in /[myhomepath]/[site2dir]/statistics/core/display.inc.php on line 1487 (repeats)
Notice: Undefined index: limit_server in /[myhomepath]/[site2dir]/statistics/core/display_helpers.php on line 742
Notice: Undefined index: limit_server in /[myhomepath]/[site2dir]/statistics/core/display_helpers.php on line 747

I get that these values need to be defined somewhere. I just don't know where. I don't see them in the config.php for either site.
f0gax
 
Posts: 3
Joined: 17 Feb 2009 00:21

Re: Multiple Sites

Postby Oliver » 17 Feb 2009 23:24

those notices can be ignored.

I am abit astonished that you get those and so many of them. are you sure you have the latest version of BAW?

If you point your BAW config data directory to /[myhomepath]/awstats/data you should get a dropdown with all the sites found in that directory.
Oliver
BetterAWStats Creator/Admin
User avatar
Oliver
Site Admin
 
Posts: 147
Joined: 10 Mar 2008 19:09

Re: Multiple Sites

Postby f0gax » 18 Feb 2009 07:32

From the config.php in my first site's BAW directory:
$BAW_CONF['path_data'] = '/[myhomepath]/awstats/data';

From the config.php in my second site's BAW directory:
$BAW_CONF['path_data'] = '/[myhomepath]/awstats/data';

And I see the data in that location for both sites.

When I check for updates from the stats page it tells me I'm at 1.0 which is the most current.
I copied all the files from the first site to the second (for AWS and BAW). Is it possible I missed something which is causing the problem?
f0gax
 
Posts: 3
Joined: 17 Feb 2009 00:21

Re: Multiple Sites

Postby Oliver » 18 Feb 2009 08:39

There is a setting in config.php:

Code: Select all
$BAW_CONF['limit_server'] =  'show_all';


Please make sure it say "show_all".

also, please enable debug:

Code: Select all
$BAW_CONF['debug'] = true;


this should create a lot of output but it should tell you exactly what is happening in the software. in the beginning it should tell you when it is reading data files and then also which and for which server.
Oliver
BetterAWStats Creator/Admin
User avatar
Oliver
Site Admin
 
Posts: 147
Joined: 10 Mar 2008 19:09


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron