Awstats not updating

Awstats not updating

Posted by: desbrina
Posted on: 2008-06-09 14:50:00

I got awstats installed but i can't seem to get it to update

I followed this guide http://wiki.dreamhost.com/index.php/AWStats_Installation

When doing the cron part i enter what it says changing the appropriate parts, so it now looks like

[quote]perl /home/carebearcez/awstats/tools/awstats_buildstaticpages.pl -config=balanced-force.com \
-update -awstatsprog=/home/carebearcez/awstats/cgi-bin/awstats.pl \
-dir=/home/carebearcez/balanced-force.com/statistics/[quote]

its set to update hourly but it doesn'tEdited by desbrina on 06/09/08 04:20 PM (server time).

Re: Awstats not updating

Posted by: patricktan
Posted on: 2008-06-09 18:24:00

you will need to provide the path to perl at least. try with /usr/local/bin/perl

So the final one should be something like

0 3 * * * /usr/local/bin/perl /home/carebearcez/awstats/tools/awstats_buildstaticpages.pl
-config=balanced-force.com -update -awstatsprog=/home/carebearcez/awstats/cgi-bin/awstats.pl
-dir=/home/carebearcez/balanced-force.com/statistics/ >/dev/null 2>&1

Re: Awstats not updating

Posted by: seiler
Posted on: 2008-06-09 22:30:00

That's not the cron part--that's the part to make sure it's working. Read further down the page for the cron section.

Also, if you're copying & pasting the code like that, you'll have a line break problem. Note the warning down by the cron section:

In reply to:

The following has been moved to three lines to save from side scrolling, it still needs to be one line.



So, be sure it gets entered on one line when you set it up.

Re: Awstats not updating

Posted by: desbrina
Posted on: 2008-06-10 01:01:00

I'm getting confused at the end of the guide. At the beginning it says to move the files out of the cgi-bin directory into the awstats directory.

The further down under configuration
http://wiki.dreamhost.com/index.php/AWStats_Installation#Configuration_2
it says to go to the directory and copy/edit files, which no longer exist.

At the begining it tells you to place the awstasts folder in /home/yourusername/ but at the end the urls have have it in
http://YourDomain/AwStatsDir/cgi-bin/awstats.pl?config=YourDomain

which doesn't make sense since thats not where the awstats folder was placed

Re: Awstats not updating

Posted by: patricktan
Posted on: 2008-06-10 07:16:00

That is to set up AWStats for multiple domains. Let's if you have more than one domains hosted with the same user.

If you have only one domain, you should stop at
http://wiki.dreamhost.com/index.php/AWStats_Installation#.htaccess_file

Re: Awstats not updating

Posted by: desbrina
Posted on: 2008-06-10 13:54:00

i have it set up on 1, but plan on settings it up for 2 more when i get the first one working.

Currently its being used on http://balanced-force.com/ but it will be being used on http://midnighttempest.com/ and http://www.a-talk.co.uk/

Re: Awstats not updating

Posted by: sdayman
Posted on: 2008-06-10 16:18:00

Even then, the logs are separate. I run awstats in the /stats directory of each domain I monitor, each with their own configuration and cronjob. I also run each domain under a different user, but regardless, I like to keep all my activities separate.

-Scott

Re: Awstats not updating

Posted by: desbrina
Posted on: 2008-06-11 01:21:00

i decided to put awstats into each directory and followed this since it was easier
http://wiki.dreamhost.com/AWStats_Installation_(alternative)

seems to be working now

Tags: server timecgi binplstatistics