Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 07, 2012, 09:28:30 PM

Pages: 1 2 3 [4]   Go Down
  Print  
Author Topic: Install Awstats on your home PC - Tutorial  (Read 117643 times)
Fly Fort
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #45 on: February 23, 2007, 07:38:08 AM »

Indeed, you have to do all those steps everytime again.
If not, the page isn't updated
Logged
kenwvs
Space Explorer
***
Offline Offline

Posts: 9


« Reply #46 on: February 25, 2007, 10:49:29 PM »

I have been successful at getting the AWStats working on my machine, which is a miracle in itself......Thanks for the great tutorial, it worked just as you said it would.

Is there a way to have the stats automatically pulled so I can look at them on a daily basis, a month to date view and again one for the complete month at the end of the month.  I am not sure if this can be done, or where I would even start to try and get this to happen automaticaly at the end of each day.

Thanks,

Ken
Logged
Fly Fort
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #47 on: February 26, 2007, 08:13:35 AM »

This can't be done there your awstats is running on your pc.
So you have to download your log file everytime you want to update your statistics.

Name it like you named your other file and then perform these 3 steps

Quote
2. Go back to the DOS window (Start, Run, "cmd" if you closed it) and type the following and hit Enter when done:
cd c:\awstats-6.2\wwwroot\cgi-bin

3. Now type the following and hit enter (replace your domain):
perl awstats.pl -config=www.yourdomain.com -update

4. This might take a while, and I do mean a long while.  To check to make sure if something is actually happening, check out your hard drive activity light on your computer.  If it is going nuts then Awstats is crunching away.  As it is processing you will see some status lines being updated on the screen.  You will know it's done when you get returned to the command prompt.

5. Once you are back at the command prompt, type the following and hit enter (again, replace your domain):
perl awstats.pl -config=www.yourdomain.com -update -output > stats.html

A shame LP doesn't put Awstats online, most other hosts does. Sad
Logged
Lupine1647
Berserker Poster
*****
Offline Offline

Posts: 10868


« Reply #48 on: February 26, 2007, 12:57:51 PM »

Hello:

We don't provide awstats because of resource issues when it tries to generate statistics.
Logged
kenwvs
Space Explorer
***
Offline Offline

Posts: 9


« Reply #49 on: February 26, 2007, 08:47:32 PM »

We don't provide awstats because of resource issues when it tries to generate statistics.

I have read about the resource issues for a long time in these postings, and I would think with all of the other features you have been able to add to the accounts to keep pace with other providers, and to provide the services and features that are important to users, you would be able to offer AWStats.........and in reality, not everyone would use them, so it wouldn't be as big a drain as you think.....

Ken
Logged
islan38
Newbie
*
Offline Offline

Posts: 1


« Reply #50 on: September 16, 2007, 09:08:37 AM »

Hello,

I have followed all the instructions and everything seems to work except that my stats.html file looks like this:

Create/Update database for config "./awstats.www.island-ikaria.com.conf" by AWStats version 6.7 (build 1.892) From data in log file "C:\AWStats\logs\ikaria.log"... Phase 1 : First bypass old records, searching new record... Direct access to last remembered record has fallen on another record. So searching new records from beginning of log file... Jumped lines in file: 0 Parsed lines in file: 33559 Found 3 dropped records, Found 3 corrupted records, Found 33553 old records, Found 0 new qualified records.

What am I doing wrong? Please advise
Logged
Internapse
Newbie
*
Offline Offline

Posts: 1


« Reply #51 on: October 11, 2007, 10:17:56 AM »

Excellent tutorial Kevin!

Worked great, even with the new version of AWStats.

After I completed your tutorial, and got to reading some of the posts here, I decided that an automated script would be great.

So, 3 - 4 hours later, I finally created the batch file and a text file with everything needed to automatically log into my ftp account, download the log file for that month, unzip the .gz file, rename it to the .log file, and finally read that file with AWStats.

Prereqs:
- ActivePerl is installed in the "c:\Perl" dir
- AWStats is installed in the "c:\awstats\" dir
- You have the "gzip.exe" file in your "logs" directory (download here -- http://www.gzip.org/#exe)
If you have windows - http://www.gzip.org/gzip124xN.exe - unzip to "logs" directory, no files to install.

Here's the code, enjoy.

1) Open notepad
2) Copy the below code, changing "yourdomain"
3) File, Save As, "awstats.bat"

awstats.bat
Code:
@echo off

cd c:\AWStats\logs

ftp -s:"c:\AWStats\logs\ftp.txt"

gzip.exe -d yourdomain.com-Oct-2007.gz

rename yourdomain.com-Oct-2007 yourdomain.log

cd c:\AWStats\wwwroot\cgi-bin

perl awstats.pl -config=www.yourdomain.com -update

c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -update
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output -staticlinks > awstats.www.yourdomain.com.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=alldomains -staticlinks > awstats.www.iyourdomain.com.alldomains.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=allhosts -staticlinks > awstats.www.yourdomain.com.allhosts.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=lasthosts -staticlinks > awstats.www.yourdomain.com.lasthosts.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=unknownip -staticlinks > awstats.www.yourdomain.com.unknownip.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=alllogins -staticlinks > awstats.www.yourdomain.com.alllogins.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=lastlogins -staticlinks > awstats.www.yourdomain.com.lastlogins.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=allrobots -staticlinks > awstats.www.yourdomain.com.allrobots.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=lastrobots -staticlinks > awstats.www.yourdomain.com.lastrobots.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=urldetail -staticlinks > awstats.www.yourdomain.com.urldetail.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=urlentry -staticlinks > awstats.www.yourdomain.com.urlentry.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=urlexit -staticlinks > awstats.www.yourdomain.com.urlexit.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=browserdetail -staticlinks > awstats.yourdomain.com.browserdetail.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=osdetail -staticlinks > awstats.www.yourdomain.com.osdetail.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=unknownbrowser -staticlinks > awstats.www.yourdomain.com.unknownbrowser.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=unknownos -staticlinks > awstats.www.yourdomain.com.unknownos.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=refererse -staticlinks > awstats.www.yourdomain.com.refererse.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=refererpages -staticlinks > awstats.www.yourdomain.com.refererpages.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=keyphrases -staticlinks > awstats.www.yourdomain.com.keyphrases.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=keywords -staticlinks > awstats.www.yourdomain.com.keywords.html
c:\perl\bin\perl.exe awstats.pl -config=www.yourdomain.com -output=errors404 -staticlinks > awstats.www.iyourdomain.com.errors404.html

call awstats.www.yourdomain.com.html

Save the above file in the "logs" directory

4) Open up notepad once again
5) Copy and paste the below code, changing "ftp.yourdomain.com", "username", "password", and "yourdomain.com-Oct-2007.gz"

ftp.txt
Code:
open ftp.yourdomain.com
username
password
cd logs
get yourdomain.com-Oct-2007.gz
quit

6) File, save as "ftp.txt" to the "logs" directory.

Hope that helps,
~Scott
www.Internapse.com
« Last Edit: October 11, 2007, 10:20:13 AM by Internapse » Logged
chiefgeek
Newbie
*
Offline Offline

Posts: 2


« Reply #52 on: August 30, 2008, 12:00:47 PM »

I also think this is a great tutorial for someone using windoze box.

Did anyone even catch the reason they posted the tutorial?  It is because there servers are so overloaded that you can't run awstats.  All of there competitors hosting programs provide awstats.

I wish they would just allow us to use the software instead of forcing us to install it on a local computer and downloading all of the logfiles and running it.  It so much easier to just use it from the control panel.   

Sad
Logged
darkwolf
Guest
« Reply #53 on: October 01, 2008, 08:48:45 PM »

From what I have heard  Awstats appears to be a resource hog, and may cause issues to occur, resulting in possible downtime.  In this case, our admin team may have decided for server stability not to have it installed on shared hosting servers.
Logged
Kinpolmo
Trekkie
**
Offline Offline

Posts: 14



« Reply #54 on: October 21, 2008, 10:24:46 AM »

AWStats is horrible on resources, but the stats it provides are great.
Logged
ljonston
Trekkie
**
Offline Offline

Posts: 11


« Reply #55 on: June 26, 2009, 12:26:12 PM »

AWStats is horrible on resources, but the stats it provides are great.

Yea, once you get used to the consumption, you don't even notice it.
Logged
Pages: 1 2 3 [4]   Go Up
  Print  
 
Jump to: