BeNe
Moderator
    
Posts: 3,168
Joined: Jan 2007
Reputation: 42
|
AWStats does not work in r857 ?!
Hello community,
can someone also confirm that there is an Error in r857 on AWStats ?
--> http://ispcpdemo.homeip.net/stats/
Code:
Error 404!
/stats/
File Not Found!
AWStats is enabled:
Code:
#
# AWSTATS data
#
AWSTATS_ACTIVE = yes
# could be 'dynamic' = 0 or 'static' = 1
AWSTATS_MODE = 0
AWSTATS_CACHE_DIR = /var/cache/awstats
AWSTATS_CONFIG_DIR = /etc/awstats
AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin
AWSTATS_WEB_DIR = /usr/share/awstats
AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats
But there is no Apache2 entry:
Code:
....
Redirect /ispcp http://admin.ispcpdemo.homeip.net
<IfModule mod_cband.c>
CBandUser ispcpdemo.homeip.net
</IfModule>
# httpd awstats support BEGIN.
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /var/www/virtual/ispcpdemo.homeip.net/cgi-bin/
<Directory /var/www/virtual/ispcpdemo.homeip.net/cgi-bin>
AllowOverride None
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry cgi support END.
....
Greez BeNe
![[Image: ispcpsw.png]](http://bene.homelinux.net/autoindex/Files/ispCP%20Omega/ispcp_userbars/ispcpsw.png)
Ein Betriebssystem ist immer nur so gut und sicher wie der Administrator der es verwaltet.
Wie gut der Administrator jedoch seine Fähigkeiten ausspielen kann, legt das Betriebssystem fest.
-> Linux rulZ!
|
|
| 10-16-2007 12:38 AM |
|
zpin
Junior Member

Posts: 106
Joined: Sep 2007
Reputation: 0
|
RE: AWStats does not work in r857 ?!
I think this should fix it:
Code:
Index: engine/ispcp-dmn-mngr
===================================================================
--- engine/ispcp-dmn-mngr (revision 858)
+++ engine/ispcp-dmn-mngr (working copy)
@@ -1025,10 +1025,10 @@
my $awstats_entry = undef;
if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes' && $main::cfg{'AWSTATS_MODE'} eq 1) {
- $awstats_entry = "$dmn_awstats_entry\n$dmn_awstats_b\n$dmn_awstats_e";
+ $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_e";
}
else {
- $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_e";
+ $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_entry\n$dmn_awstats_e";
}
($rs, $dmn_entry) = repl_tag(
@@ -2355,7 +2355,7 @@
'{DMN_NAME}' => $dmn_name
);
- ($rs, $cfg) = prep_tpl(\%tag_hash, $starter_tpl);
+ ($rs, $cfg) = prep_tpl(\%tag_hash, $ini_tpl);
return $rs if ($rs != 0);
($rs, $rdata) = store_file(
@@ -2381,7 +2381,7 @@
'{DMN_NAME}' => $dmn_name
);
- ($rs, $cfg) = prep_tpl(\%tag_hash, $starter_tpl);
+ ($rs, $cfg) = prep_tpl(\%tag_hash, $ini_tpl);
return $rs if ($rs != 0);
($rs, $rdata) = store_file(
|
|
| 10-16-2007 01:08 AM |
|
zpin
Junior Member

Posts: 106
Joined: Sep 2007
Reputation: 0
|
RE: AWStats does not work in r857 ?!
Another thing for awstats static: Shouldn't there be some kind of Alias "/stats /var[...]/statistics" in the dmn_entry?
|
|
| 10-16-2007 01:28 AM |
|
zpin
Junior Member

Posts: 106
Joined: Sep 2007
Reputation: 0
|
RE: AWStats does not work in r857 ?!
I've had a look at the cpu usage during awstats dynamic browsing and it's rather high. I think I'll switch back to static so it doesn't affect the gameservers too much (because with static I can chose at which time it generates the cpu load, plus I can nice it down a bit).
I think all that is needed for it to work is the following in a vhost domain entry:
Code:
Alias /stats /{WWW_DIR}/{DMN_NAME}/statistics/
<Directory "/{WWW_DIR}/{DMN_NAME}/statistics">
AllowOverride None
DirectoryIndex awstats.{DMN_NAME}.html
Order allow,deny
Allow from all
</Directory>
in the dmn mngr we could then just substitute the current awstats template with this one when awstats mode is 1.
(This post was last modified: 10-16-2007 05:39 PM by zpin.)
|
|
| 10-16-2007 05:36 PM |
|