Current time: 12-24-2024, 09:01 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] no awstats at all
Author Message
ergo Offline
Junior Member
*

Posts: 56
Joined: Apr 2008
Reputation: 0
Post: #1
[SOLVED] no awstats at all
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?
(This post was last modified: 06-05-2008 03:49 PM by BeNe.)
06-04-2008 11:46 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: no awstats at all
Can you post the Apache Error Logs ?
Also the proxy configs.

Greez BeNe
06-04-2008 11:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ergo Offline
Junior Member
*

Posts: 56
Joined: Apr 2008
Reputation: 0
Post: #3
RE: no awstats at all
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.
06-04-2008 11:58 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: no awstats at all
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
06-05-2008 12:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ergo Offline
Junior Member
*

Posts: 56
Joined: Apr 2008
Reputation: 0
Post: #5
RE: no awstats at all
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...
(This post was last modified: 06-05-2008 05:37 AM by ergo.)
06-05-2008 05:33 AM
Find all posts by this user Quote this message in a reply
ergo Offline
Junior Member
*

Posts: 56
Joined: Apr 2008
Reputation: 0
Post: #6
RE: no awstats at all
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 ...
(This post was last modified: 06-05-2008 06:36 AM by ergo.)
06-05-2008 06:29 AM
Find all posts by this user Quote this message in a reply
ergo Offline
Junior Member
*

Posts: 56
Joined: Apr 2008
Reputation: 0
Post: #7
RE: no awstats at all
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.
06-05-2008 10:18 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: no awstats at all
Fine! And thanks for the short step-by-step HowTo Wink

Greez BeNe
06-05-2008 03:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Quattro Offline
Newbie
*

Posts: 5
Joined: Jun 2008
Reputation: 0
Post: #9
RE: [SOLVED] no awstats at all
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?
06-06-2008 06:34 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: [SOLVED] no awstats at all
It is a directory! Create it and set a chmod 777 on it.

Greez BeNe
06-06-2008 04:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)