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


Post Reply 
AWSTATS Problem
Author Message
arkov Offline
Newbie
*

Posts: 6
Joined: Mar 2009
Reputation: 0
Post: #1
AWSTATS Problem
by installation forgot to put AWstats. Now I do not know how to activate. Help me please. Documentation and found nothing.
09-04-2009 07:33 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: AWSTATS Problem
Please try this
http://www.isp-control.net/forum/thread-4663.html
caution: it's in german - but the steps should be understandable....

Maybe you can translate it for others...

/J
09-04-2009 08:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #3
RE: AWSTATS Problem
Try use google translate.
09-05-2009 12:18 AM
Visit this user's website 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: AWSTATS Problem
Here it is in english. Google doesn´t translate the CodeBox:

Code:
Modify your /etc/ispcp/ispcp.conf:

OLD: AWSTATS_ACTIVE = no
NEW: AWSTATS_ACTIVE = yes

OLD: AWSTATS_MODE = 0
NEW: AWSTATS_MODE = 0

===========================

Please check if these directory´s exist in your ispcp.conf:

missing:        AWSTATS_CACHE_DIR = /var/cache/awstats
included:    AWSTATS_CONFIG_DIR = /etc/awstats
included:    AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin
included:    AWSTATS_WEB_DIR = /usr/share/awstats
included:    AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats

Create the folder:
(as root) mkdir /var/cache/awstats

===========================

Stop Services:

/etc/init.d/ispcp_daemon stop
/etc/init.d/apache2 stop

===========================

Create symlink for Apache

cd /etc/apache2/sites-enabled/
ln -s ../sites-available/01_awstats.conf 01_awstats.conf

==========================

Enable the Proxy for AWStats:

cd /etc/apache2/mods-enabled
ln -s ../mods-available/proxy.conf proxy.conf
ln -s ../mods-available/proxy.load proxy.load
ln -s ../mods-available/proxy_http.load proxy_http.load

Edit proxy.conf:


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

# Define the character set for proxied FTP directory listings
ProxyFtpDirCharset UTF-8
</Proxy>

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

# Define the character set for proxied FTP directory listings
ProxyFtpDirCharset UTF-8
</Proxy>

==========================

Cronjobs:

Please check your ispCP cron about the AWstats entry

===========================

Rebuild your Configs:

MySQL:

mysql --user=root -p

USE ispcp
UPDATE `domain` SET `domain_status` = 'toadd' WHERE `domain_status` = 'ok';
UPDATE `subdomain` SET `subdomain_status` = 'toadd' WHERE `subdomain_status` = 'ok';
UPDATE `domain_aliasses` SET `alias_status` = 'toadd' WHERE `alias_status` = 'ok';

quit

===========================
Start the engine

/var/www/ispcp/engine/ispcp-rqst-mngr


===========================

Start the servies

/etc/init.d/ispcp_daemon start
/etc/init.d/apache2 start

===========================

Initial the stats manuelle the first time:

/var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl

Greez BeNe
09-05-2009 12:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
arkov Offline
Newbie
*

Posts: 6
Joined: Mar 2009
Reputation: 0
Post: #5
RE: AWSTATS Problem
Thanks.
English is not my mother language. And I make all translates when i need in Google-Translator.
09-06-2009 08:44 PM
Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #6
RE: AWSTATS Problem
what is the command that should be in the crontab? right now I still have the old vhcs script in there :o

Also, is it possible to process old logs? I havent had awstats running for about 6 months now so I think im going to have a gap. I still have all the logs but they are compressed. Any ideas that would be fantastic.

Thanks guys for this thread, really helped me out!!
(This post was last modified: 09-16-2009 03:32 AM by jemmrich.)
09-16-2009 03:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #7
RE: AWSTATS Problem
(09-16-2009 03:24 AM)jemmrich Wrote:  what is the command that should be in the crontab? right now I still have the old vhcs script in there :o

Also, is it possible to process old logs? I havent had awstats running for about 6 months now so I think im going to have a gap. I still have all the logs but they are compressed. Any ideas that would be fantastic.

Thanks guys for this thread, really helped me out!!

Seems when you run the initial stats update it takes care of going back through the old log files! Cool!

Still having trouble finding what I should place in my crontab
09-17-2009 03:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: AWSTATS Problem
http://www.isp-control.net/ispcp/browser...ispcp?rev=

normally you only have to uncomment the awstats line...
(This post was last modified: 09-17-2009 09:46 AM by joximu.)
09-17-2009 09:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #9
RE: AWSTATS Problem
(09-17-2009 09:46 AM)joximu Wrote:  http://www.isp-control.net/ispcp/browser...ispcp?rev=

normally you only have to uncomment the awstats line...

Thanks so much joximu! my cron is completely different than that one so I will have to copy/paste and make the correct changes
09-18-2009 03:53 AM
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: 2 Guest(s)