AWStats Installation

AWStats Installation

Posted by: Emufarmers
Posted on: 2007-02-02 13:54:00

Support wouldn't help me with this since it's third-party software, so I guess I'll have to ask here:

In reply to:

I added awstats with the handy step-by-step guide on the wiki
(http://wiki.dreamhost.com/index.php/AWStats_Installation), and it was
going great, until I got to the part where I'm supposed to run a
couple lines in the shell to make sure it's working properly:
perl /home/yourusername/awstats/tools/awstats_buildstaticpages.pl
-config=example.com -update

and

-awstatsprog=/home/yourusername/awstats/cgi-bin/awstats.pl
-dir=/home/yourusername/example.com/statistics/

So when I modify the first one for running, to:
perl /home/emufarmers/awstats/tools/awstats_buildstaticpages.pl
-config=emufarmers.com -update
It throws back:
Error: Can't find AWStats program ('awstats.pl').
Use -awstatsprog option to solve this.

So I try:
-awstatsprog=/home/emufarmers/awstats/cgi-bin/awstats.pl
-dir=/home/emufarmers/emufarmers.com/statistics/
And it gives me:
-bash: -awstatsprog=/home/emufarmers/awstats/cgi-bin/awstats.pl: No
such file or directory
This is where I'm getting really confused: The file *is* there! I've
checked the permissions on it, its location, and yet it still won't
seem to recognize it. I just can't figure out what the problem is. :/


emufarmers.com
Very little to do with either emus or farmers!

Re: AWStats Installation

Posted by: rlparker
Posted on: 2007-02-02 15:20:00

You might want to read that section of the wiki article a little bit closer, with special attention to the part that says:

"The above has been entered as two lines. If entered in one line, remove the backslash ()"

That is actually all *one command* , broken into two lines for the sake of the wiki and to make a more "manageable" command line. You are only entering the first part of the command, and that is the source of the problem. The error message is telling you to *use* the -awstatsprog option (of the awstats.pl program) to "solve the problem", and that "option" is the last "half" of the "long" command line (or the "second line" - joined to the first with the "") indicated in the wiki.

In other words, *both* "lines" are to be *combined* into *one command line*, *OR* you can use the "" to "join" the two lines into a *single shell command*.

--rlparker

Re: AWStats Installation

Posted by: Emufarmers
Posted on: 2007-02-02 20:25:00

No wonder: I read it backwards. I thought it was saying to remove the backslash if I was doing it as TWO lines. The eyes read faster than the brain.

Thanks, rlparker.

emufarmers.com
Very little to do with either emus or farmers!

Re: AWStats Installation

Posted by: rlparker
Posted on: 2007-02-02 23:23:00

You're most welcome, and I'm glad you got it sorted. That line in the wiki *is* a little confusing, and we have all experienced having our eyes "read" faster than our brain "thinks"! wink

rlparker

Tags: awstatsdreamhostplguesswikicgi binperlstatisticsshell