ispCP - Board - Support
[SOLVED] no awstats at all - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: [SOLVED] no awstats at all (/thread-3451.html)

Pages: 1 2


[SOLVED] no awstats at all - ergo - 06-04-2008 11:46 PM

Hello,
i had ispcp installed for me on my vps. so im not sure what was chosen during installation time.

but it seems that i have no AWSTATS at all.

Can i enable it somehow ?

i tired doing:
1. enabled awstats in ispcp.conf
2. made sure that awstats is installed
3. ive enabled mod proxy and 001_awstats.conf for apache
4. regenerated my config files (wiki howto)

but there are no stats at all:
http://webreactor.eu/stats/

in error log there is an entry that it cant find /htdocs.

did i miss something ? what else do i need to do to have stats?


RE: no awstats at all - BeNe - 06-04-2008 11:51 PM

Can you post the Apache Error Logs ?
Also the proxy configs.

Greez BeNe


RE: no awstats at all - ergo - 06-04-2008 11:58 PM

Quote:<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow
#spammers to use your proxy to send email.

ProxyRequests Off

<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
#Allow from .example.com
</Proxy>

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block

ProxyVia On
</IfModule>

Quote: Jun 04 15:49:09 2008] [error] [client 127.0.0.1] client denied by server configuration: proxy:http://localhost/awstats/
Jun 04 15:49:10 2008] [error] [client 127.0.0.1] client denied by server configuration: proxy:http://localhost/awstats/
Jun 04 15:49:10 2008] [error] [client 127.0.0.1] client denied by server configuration: proxy:http://localhost/awstats/
Jun 04 15:49:11 2008] [error] [client 127.0.0.1] client denied by server configuration: proxy:http://localhost/awstats/

maybe i missed something? i could not find any info on how to enable awstats after installation. tried enabling them myself.


RE: no awstats at all - BeNe - 06-05-2008 12:54 AM

Use this one:
Code:
<IfModule mod_proxy.c>
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.

        ProxyRequests Off

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
        </Proxy>

        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block

        ProxyVia On
</IfModule>
There is:
Code:
Allow from 127.0.0.1
Missing in your Config!

Greez BeNe


RE: no awstats at all - ergo - 06-05-2008 05:33 AM

Ive fixed the proxy settings ..

now i got:

Quote:Error: AWStats database directory defined in config file by 'DirData' parameter (/var/cache/awstats) does not exist or is not writable.

Setup ('/etc/awstats/awstats.castleparty.darknation.eu.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

What next do i need to set up to get this running? There is no howto for awstats enabling ?

update:
ive created : /var/cache/awstats , and chmoded it 777.
but everything is 0...


RE: no awstats at all - ergo - 06-05-2008 06:29 AM

cant someone just post a step-by-step guide on what should i do to enable awstats?
i should be able to fix everythingv then, without guessing and trying out various things

i have suspicion that CRON jobs are not set up, but i dont even know where to look for them ...


RE: no awstats at all - ergo - 06-05-2008 10:18 AM

ok... so stats are generated after all...

here is a HOWTO(tested debian lenny , ispcp rc5) how to enable them if someone said no in install (ive read that its very hard to reenable them - that is not true).

1. Install AWSTATS
2. enable awstats in /etc/ispcp./ispcp.conf
3. uncomment awstats line in cron.d/ispcp
4. make sure that 001_awstats.conf files are present in sites-enabled for apache
5. make sure that proxy mods are enabled and configured for apache
6. create and chmod 777 /var/cache/awstats
7. regenerate the config files for accounts using the soution from wiki's howto.


RE: no awstats at all - BeNe - 06-05-2008 03:48 PM

Fine! And thanks for the short step-by-step HowTo Wink

Greez BeNe


RE: [SOLVED] no awstats at all - Quattro - 06-06-2008 06:34 AM

i'm getting a 403 forbidden after following your howto

1. Install AWSTATS
2. enable awstats in /etc/ispcp/ispcp.conf
3. uncomment awstats line in cron.d/ispcp
4. make sure that 001_awstats.conf files are present in sites-enabled for apache
5. make sure that proxy mods are enabled and configured for apache
6. create and chmod 777 /var/cache/awstats
7. regenerate the config files for accounts using the soution from wiki's howto.

i'm unsure what you mean with 6. create and chmod 777 /var/cache/awstats
is that a file or a directory?

i guess it is a directory, but does anybody know why i get the 403?


RE: [SOLVED] no awstats at all - BeNe - 06-06-2008 04:05 PM

It is a directory! Create it and set a chmod 777 on it.

Greez BeNe