Can someone help me install AWstats?

simms

Diamond Member
Sep 21, 2001
8,211
0
0
Update: I got the logs running, but they might be corrupted. June's data is fully intact but July's is wrong (says I have 1 visit the entire month).

I have CRON set up alright now, I think. I keep getting emails like this one:

"Update for config "/home/simon/domains/simon-leung.com/public_html/cgi-bin/awstats.conf"
With data in log file "gzip -d </home/simon/domains/simon-leung.com/logs/Jul-2004.tar.gz |"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... Jumped lines in file: 0 Parsed lines in file: 3651 Found 0 dropped records, Found 603 corrupted records, Found 3048 old records, Found 0 new qualified records.
"

Help?
 

Cheetah8799

Diamond Member
Apr 12, 2001
4,508
0
76
AWStats is awesome. :)

I'm not sure how rossman sets up his server to manage the logs. Most likely they get compressed daily into a .gz file and put in the logs directory. AWstats is smart enough to automatically decompress the .gz file, so you should be able to setup a cron job to run awstats on a regular basis.

I bet rossman would be the best person to ask, since it's his server, and he knows how it's all setup.
 

simms

Diamond Member
Sep 21, 2001
8,211
0
0
Whoa, seriously? I can link it directly to the gz file? You are absolutely correct that I do have logs in a gz file but I have no idea how to link to them. I can see the logs in plain text thru the admin console and accessing logs that way, but unfortuantely AWStats can't read it through HTTP.

I have no idea how to run Cron, think you could help me out? PMs to RossMAN go unanswered, and he's not on MSN.

Simon
 

Cheetah8799

Diamond Member
Apr 12, 2001
4,508
0
76
Are you able to SSH to the server? If so, you can force an update via SSH. I assume you edited the conf file for your server, and told it where the log file is located.

I may be incorrect in the .gz support. I've done a lot of work with Webalizer as well, and I know one or the other can handle it. Here's an exerpt from the conf file:
# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d </var/log/apache/access.log.gz |"

Mine looks like this:
LogFile="/var/log/httpd/access_log"

So basically you just need to pipe it, like the example shows. I don't though since I have my server run awstats as a cron job very frequently. I don't have to worry about the archived logs at all.


Anyway, if you get the log file setting correct, then you can SSH to the server and try to build the stats and parse the log file by running awstats like this:
awstats.pl -config=someconfigfile -update

I got that from this URL link


As for the cron job that I mentioned, since I run my own server I can simply edit the /etc/crontab file and added this line:

* 0,4,8,12,16,20 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=tschidanet.homedns.org

It basically is set to call the awstats.pl script at midnight, 4am, 8am, 12pm, 4pm, 8pm.


Anyway, I hope this helps.
 

simms

Diamond Member
Sep 21, 2001
8,211
0
0
Originally posted by: Cheetah8799
Originally posted by: PorBleemo
Why not PM him? He runs the stuff. :)

he did, i'm guessing rossman is busy right now.

PM'd him 3 times and have been waiting for him on MSN the past 3 days. :( No good so far.
 

simms

Diamond Member
Sep 21, 2001
8,211
0
0
Awesome. I tried it another way, and it worked.

http://www.simon-leung.com/cgi-bin/awstats.pl

Thing is now, it doesn't show any of my July stats? The June statistics are fine, and they look great. But July doesn't update, even when I click on update now. How come?
In my FTP, my July logs are MUCH bigger than my June ones, but how come there are no results?

-rw-r--r-- Jul-2004.tar.gz 40,810 7/1/04 6:20:00 AM
-rw-r--r-- Jun-2004.tar.gz 13,524 6/1/04 6:21:00 AM


Simon