Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 11, 2008, 03:28:04 PM


Login with username, password and session length


Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: Install Awstats on your home PC - Tutorial  (Read 40962 times)
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #15 on: November 01, 2004, 02:38:26 PM »

This might not be the issue, but figured I would throw it out just in case...

Do you know if you have the option turned on in Windows to show file extensions? If not, open the folder with the file (or really any folder) and go to Tools->Folder Options. Next, click on the View tab and uncheck the box for "Hide extensions for known file types". The fact it didn't give you a warning about the changing the file extension makes me wonder if it is hiding the "real" extension from you... again, not sure if this is the problem or not, but just in case...
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
manse
Spacescooter Operator
*****
Offline Offline

Posts: 49


« Reply #16 on: November 02, 2004, 12:15:53 AM »

GMTurner,

Thank you - your advice did indeed resolve the problem.

For the record, my log file actually had the extension myname.log.com which I only realized once I unchecked the hide file extensions of known files' box as per the advice in the previous post.

Thanks for all your help, I appreciate it.  Thumbs Up
Logged

GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #17 on: November 02, 2004, 09:27:52 AM »

Glad you got it figured out Smile
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #18 on: December 26, 2004, 03:55:05 AM »

I tried the tutorial and it helped a lot. Thanks, Kevin. Smile

I like how I can have it ignore specific IPs so that my hits don't throw off my stats. I saw a significant change in how long it took to output the stats once I enabled DNS lookups and the IP exclude feature. That was only for one test day, too. I would have to use an idle computer to run one month's worth of stats.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
ronr1999
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« Reply #19 on: December 31, 2004, 01:01:13 PM »

I've successfully been able to download and install AwStats and all is well.   I've been able to run a batch file (winXP) on the cPanel Raw Access Log "manual" download and the WinRar using command line and then Awstat...  all automated except for the raw data download.

I saw one much earlier post that you could ftp using "yourusername_stats" to get to my raw data files but I can't get this to work.  So is there another way to ftp the daily *.com files ?
=============================================
I'll answer my own question...

I found in cPanel:   FTP Manager -> FTP Accounts

At the bottom of this page it gives the exact URL to be able to access the raw *.com files.

The syntax:

ftp://login-name_logs:password@ftp.domainname.com/domainname.com

...whew !
 

Thanks !

RonR
www.smrgolf.com
Logged

lookout
Intergalactic Cowboy
*****
Offline Offline

Posts: 63



« Reply #20 on: January 31, 2005, 11:20:11 AM »

Be aware there's now a later version of awstats.  The awstats folder name reflects that too, so it's "awstats-6.3" or some newer version, rather than the "awstats-6.2" in Kevin's example.
Logged
fastcart11
Newbie
*
Offline Offline

Posts: 1


« Reply #21 on: January 31, 2005, 01:08:16 PM »

Hi. I successfully downloaded and installed and ran AWstats at home here on my PC.
Great tutorial. Worked perfect!

Wondering, how do I do it a 2nd time? EG I run the stats one time and want to do it again with a new log file a few weeks later.  The 2nd time, I started from step #3 but got an error and my computer actually beeped at me when I got to this part of step #4:

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


What steps do I have to repeat and what do I have to do differently?

Thanks! Very Happy
Logged

lookout
Intergalactic Cowboy
*****
Offline Offline

Posts: 63



« Reply #22 on: January 31, 2005, 01:28:22 PM »

Is the path to perl known to the OS?

If you don't want to add an environmental variable or add it to the system path, you might try something like this, assuming perl.exe resides in c:\perl\bin

c:\perl\bin\perl awstats.pl -config=www.yourdomain.com -update

followed by:

c:\perl\bin\perl perl awstats.pl -config=www.yourdomain.com -update -output > stats.html

Or better yet, put all those commands into a little batch file and run that.

[edit]
There's an assumption here that you're running this from awstats  wwwroot cgi-bin folder, or you need to path that too.
Logged
lookout
Intergalactic Cowboy
*****
Offline Offline

Posts: 63



« Reply #23 on: January 31, 2005, 01:35:24 PM »

Here's the pertinent code from a generic batch file that I use to generate the full reports:
Code:
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.yourdomain.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.www.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.yourdomain.com.errors404.html


[edit]
Hmmm.  I guess the lines are too long to print out cleanly in my post.  All but the first line is supposed to end at the .html, rather than be split in two.  The first line ends in -update.  Sorry about the formatting.
Logged
CreditMaster
Spacescooter Operator
*****
Offline Offline

Posts: 32


WWW
« Reply #24 on: February 20, 2005, 05:33:37 PM »

I recently installed awstats-6.3. As someone said earlier to get the "list all" or "full list" links to work use awstats to create static pages.

The easiest way I found to do this was to first move or copy awstats_buildstaticpages.pl from the tools directory to the same directory as awstats.pl.

Then replace Section 4, Paragraph 5 of the tutorial with:

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

This one command builds all possible pages and allows "Full List" links to work.

Now if I could just figure out how to automate everything and build a frame set to switch between months.

What I would really like is dynamic pages. After two days I gave up and settled for static for now. If anyone has gotten this to work I would appreciate some advice. I do have Apache installed on Windows XP so there should be someway to get it to work.  

Thanks
Logged

CreditMaster
dourque
Newbie
*
Offline Offline

Posts: 2


« Reply #25 on: February 28, 2005, 10:33:09 AM »

Thanks everyone for all this helpful info!!  I'm good to go for awstats on my PC, thank you! Thumbs Up

--Aaron
Logged
DmcMan
Guest
« Reply #26 on: March 12, 2005, 10:27:20 AM »

Any way to simplify the process of viewing the stats? For example, is it possible to have just link on my desktop that would process and open up the stats page generated?

Thanks.
Logged
CreditMaster
Spacescooter Operator
*****
Offline Offline

Posts: 32


WWW
« Reply #27 on: March 12, 2005, 05:06:04 PM »

Quote from: DmcMan
Any way to simplify the process of viewing the stats? For example, is it possible to have just link on my desktop that would process and open up the stats page generated?

Thanks.


I'm no expert but I think this is what you want. After you have every thing set up and running copy this code and change yourdomain to whatever you used when you set up your config file. Then paste it into notepad and save as a batch file.

Example: awstats.bat


@echo off

cd c:\awstats\wwwroot\cgi-bin

perl awstats_buildstaticpages.pl -config=yourdomain -update -dir=c:\awstats\stats

cd C:\awstats\stats

call awstats.yourdomain.html

 
Then right click on the file you saved and create a short cut. Then move that to your desktop. You could also right click the short cut and change the name or icon to pretty it up if you choose.

This will run and build all your pages, then open the main file in a new browser window from one click of the shortcut. You still have to wait for it to update and build pages but at least it saves a lot of typing.

This assumes you are running awstats from the c:\awstats\wwwroot\cgi-bin directory and building static pages with awstats_buildstaticpages.pl and outputing them to a c:\awstats\stats directory.

If not you will need to change your paths and directories accordingly.

If you have a problem you can add the word "pause" as another line to the code and it will prompt you to hit a key to continue. Giving you time to see what errors there may be.
Logged

CreditMaster
DmcMan
Guest
« Reply #28 on: March 12, 2005, 08:00:51 PM »

Thanks, it worked.
Logged
RyanBrantley
Galactic Royalty
*****
Offline Offline

Posts: 225



WWW
« Reply #29 on: May 25, 2005, 12:49:05 PM »

Is there a way to write a script that will ftp down the log page?

I guess what I'd really like to know is where is the physical location of the file so that I can download it...
Logged
Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM