AWStats Installation

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

[quote]I added awstats with the handy step-by-step guide on the wiki
(, 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/ -update



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

So I try:
And it gives me:
-bash: -awstatsprog=/home/emufarmers/awstats/cgi-bin/ 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. :/[/quote]
Very little to do with either emus or farmers!

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 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.


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.
Very little to do with either emus or farmers!

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: