AWStats crontab incorrect?

AWStats crontab incorrect?

Posted by: jade4ugrl
Posted on: 2005-06-02 12:56:00

I followed the wonderful instructions by Skybly for AWStats installation for DH and everything went smoothly.

Sort of.

I setup the crontab correctly per Skybly's instructions and then changed it to make it hourly with this-

1 * * * * perl /home/etc...

I get hourly e-mails from crontab stating the following:

Re: AWStats crontab incorrect?

Posted by: dallas
Posted on: 2005-06-02 18:09:00

The cron email is telling you your awstats command is wrong. It's spitting out the usage information for it instead of running your stats. Try to run it by hand until you get the usage correct and then update your cron job.

- Dallas
- DreamHost Head Honcho/Founder

Re: AWStats crontab incorrect?

Posted by: jade4ugrl
Posted on: 2005-06-02 22:03:00

Thanks, Dallas. The problem is, I don't know how to run it manually. :(

Re: AWStats crontab incorrect?

Posted by: Atropos7
Posted on: 2005-06-03 01:41:00

Here's a link the Skybly's instructions: http://wiki.dreamhost.com/index.php/AWStats

"Running it manually" is done at Step #9. Basically you have to type something like this at the shell:

perl /home/yourusername/awstats/tools/awstats_buildstaticpages.pl -config=example.com -update -awstatsprog=/home/yourusername/awstats/awstats.pl -dir=/home/yourusername/example.com/statistics/

Where you substitute the apprioate values for those parameters. According to his instructions, you should then have the necessary pages created at http://example.com/statistics/ upon successful execution.

You might want to use Copy & Paste once you get it running from the shell, and just "Paste" it into the crontab file.


cool Perl / MySQL / HTML+CSS

Re: AWStats crontab incorrect?

Posted by: jade4ugrl
Posted on: 2005-06-03 16:32:00

Thanks, Atropos. I once again re-ran Skybly's instructions (steps 9-12) and they appeared to successfully run; the html files were done successfully (again) and the crontab was installed (again).

When I checked the stats, all stats came up as zeros for June and states the last time it was updated as May 31st. Odd, considering I just re-ran those steps. Twice, even.

I am sure I am missing something absolutely stupid.

I swear I am not an idiot. I just play one on DH forums. ;)

Re: AWStats crontab incorrect?

Posted by: jade4ugrl
Posted on: 2005-06-06 14:05:00

This has been resolved with a bunch of tweaking and whatnot. Thank you.

Re: AWStats crontab incorrect?

Posted by: hopsterguy
Posted on: 2005-06-28 21:03:00

How did you resolve this??? I have the exact same thing happening. I suspect because we followed the same directions.

Crontab sends me the same message, but no update is happening.


Thanks

-Steve

Re: AWStats crontab incorrect?

Posted by: Nef
Posted on: 2005-06-29 21:55:00

Hi, when I installed it i had problems too and couldn't figure out why I kept getting an error even though I was pasting in the correct line into the crontab.

After awhile I finally figured out what it was. I was using Putty to edit my crontab, and pasted my line of code. I thought it was using a "word wrap" thing but it wasn't, it was pasting it as two lines instead of one.

Make sure its on one line, even if you have to type it out.

Re: AWStats crontab incorrect?

Posted by: jade4ugrl
Posted on: 2005-07-01 11:00:00

I did type it all out. :/

But this time, I maximized the screensize and I *think* that may have done the trick. I'll know better tomorrow when I check my stats and see if its updated or not. :)

Re: AWStats crontab incorrect?

Posted by: joeygun
Posted on: 2005-09-17 07:09:00

I know this is not really a timely reply, but I've just been going through all this to try and get awstats running on one of my domains.

If I can save anyone else the time I've spent figuring out what one of my problems was, well, good.

If you edit your crontab in nano using the command crontab -e, you can turn off word wrap using [Esc]-w. (Press the escape key then press the w key.)

Tags: awstatsoptionscrontabrelative pathperliconstatistics