Web Hosting Forum | Lunarpages

Author Topic: Install Awstats on your home PC - Tutorial  (Read 270269 times)

Offline CreditMaster

  • Pong! (the videogame) Master
  • *****
  • Posts: 24
    • http://www.goodcreditahead.com
Install Awstats on your home PC - Tutorial
« Reply #30 on: May 25, 2005, 02:41:14 PM »
If you want the monthly log it is outside the public html directory in a directory named log. If you go there you will see the zipped files for each month.

It seems based on different times I've tried to do an update that those files are (at least mine are) updated around 5:00PM EST daily.

Depending on the ftp client you use, you may be able to set up a scheduled transfer to run automatically. You will still need to unzip them to use.

 8-)
CreditMaster

Offline RyanBrantley

  • Galactic Royalty
  • *****
  • Posts: 222
    • http://resume-3.com
Install Awstats on your home PC - Tutorial
« Reply #31 on: May 26, 2005, 05:39:48 AM »
Yea..

Well.. I was planning on using the native ftp command line for windows for the ftp.. all I need to do is run the batch..

There is an add on for WinZip that enables the user to run it from cmd line:

http://www.download.com/WinZip-Command-Line-Support-Add-On/3000-2250_4-10267165.html

The only reason I was asking, is because I couldn't find that log folder.

Support ended up telling me once you activate the raw log manager, the stats are only upadted at the end of the month.

 :thumb:

Offline DrateX

  • Space Explorer
  • ***
  • Posts: 9
    • http://www.dratex.com
Install Awstats on your home PC - Tutorial
« Reply #32 on: July 03, 2005, 08:24:48 PM »
Any idea's on this error I get?


C:\awstats-6.4\tools>perl awstats_configure.pl
'perl' is not recognized as an internal or external command,
operable program or batch file.

Offline GMTurner

  • Berserker Poster
  • *****
  • Posts: 7499
    • Turner's Lounge
Install Awstats on your home PC - Tutorial
« Reply #33 on: July 03, 2005, 08:51:33 PM »
do you have perl installed on your machine? If not, then that would most likely be the cause. If you do, try giving it the full path to perl rather than just "perl" to see if that fixes it...
The above information may or may not reflect current policy, opinions, or views since it was likely made almost 10 years ago.

Offline DrateX

  • Space Explorer
  • ***
  • Posts: 9
    • http://www.dratex.com
Install Awstats on your home PC - Tutorial
« Reply #34 on: July 04, 2005, 06:02:19 PM »
Got it working now... thanks!!! :)

Offline markblasco

  • Newbie
  • *
  • Posts: 4
Re: Install Awstats on your home PC - Tutorial
« Reply #35 on: September 05, 2005, 08:28:36 PM »
How do you go about using awstats if you have several add on domains?  I have podcastthemes.com as one of my sites, but I also have markblasco.com and kindnessgrewup.com.  I tried downloading the log files for these other sites, renaming them podcastthemes.log (this works for my main site), and running awstats, but it is not showing the correct info.  I should have 500 Megs of files downloaded from markblasco.com, but it only shows a few files transferred.  What do I need to do to see the info for these add on domains?  Thanks

Offline purefusion

  • Discovered
  • Trekkie
  • **
  • Posts: 11
Re: Install Awstats on your home PC - Tutorial
« Reply #36 on: September 29, 2005, 10:48:55 AM »
Exactly. I need to know the exact same thing. I've got at least 20 website I keep track of. Thanks!

Offline birjinder

  • Newbie
  • *
  • Posts: 1
Re: Install Awstats on your home PC - Tutorial
« Reply #37 on: October 20, 2005, 12:54:53 PM »
Hi,
I installed AWStats a while back.  It worked fine with the first log file (for August), but for the subsequent log files, when I output the stats.html file, it has no new info, just the info from the first log file I ran.  Am I missing something?  I'm assuming that once i set up the Raw Log Manager on Lunarpages to archive log files, all I have to do is download the zip file for a particular month to get all the data for that month. 
Thanks
Birjinder

======

I figured this out - I had specified a different name for the log file that AWStats was reading, and I wasn't changing the log files I was downloading to the new name.
« Last Edit: October 20, 2005, 01:28:21 PM by birjinder »

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
Re: Install Awstats on your home PC - Tutorial
« Reply #38 on: October 20, 2005, 02:18:49 PM »
Thank you for sharing the solution, birjinder. I had the same problem and haven't used awstats since then.
:whip: :love: :whip: :love: :whip: :love:

Offline filmfreak

  • Space Explorer
  • ***
  • Posts: 7
Re: Install Awstats on your home PC - Tutorial
« Reply #39 on: May 19, 2006, 09:39:00 AM »
I'm quite new here but eh... does this mean we can have all the Awstats Stats when we use the tutorial and use the logfiles that are generated automatically ?

Koen

Offline effectu

  • Newbie
  • *
  • Posts: 2
Re: Install Awstats on your home PC - Tutorial
« Reply #40 on: May 20, 2006, 11:54:20 PM »
I created another version of the batch file posted earlier.(I wouldn't have, except I just found out that someone else made one).  Anyways, here it is:

Quote
@echo on

CD C:\awstats-6.5\wwwroot\cgi-bin\
call perl awstats.pl -config=www.yoursite.com -update
call perl awstats.pl -config=www.yoursite.com -update -output > stats.html
echo STATS.HTML has been created.
pause


Oh, btw, this only creates the file.  If you want to view it, just copy and paste the last line of the other batch into this one.

Offline JimBrown

  • Knowing enough to be dangerous!
  • Jabba the Hutt
  • *****
  • Posts: 738
    • Radio Control Aircraft Gallery
Re: Install Awstats on your home PC - Tutorial
« Reply #41 on: May 21, 2006, 06:21:08 PM »
I finally found a bit of time this weekend and followed this How-To to install AWStats on my home computer. I noticed that a few people mentioned having trouble using AWStats in CGI (the non-static pages) mode. After a bit of tinkering, I managed to get it to work.

You'll need Apache installed on your home computer (I have a WAMP system installed for dev work.)

To get it to work, I set up the AWStats "wwwroot" directory as a virtual web site. Here's the entry in httpd.conf:

Code: [Select]
    <VirtualHost *:80>
    DocumentRoot f:/website/AWStats/wwwroot
    ServerName AWStats
    ErrorLog logs/AWStats-error.log
    CustomLog logs/AWStats-access.log common
    ScriptAlias /cgi-bin/ "F:/WebSite/AWStats/wwwroot/cgi-bin/"
    #
    # Directives to add to your Apache conf file to allow use of AWStats as a CGI.
    # Note that path "/usr/local/awstats/" must reflect your AWStats Installation path.
    #
    Alias /awstatsclasses "F:/WebSite/AWStats/wwwroot/classes/"
    Alias /awstatscss "F:/WebSite/AWStats/wwwroot/css/"
    Alias /awstatsicons "F:/WebSite/AWStats/wwwroot/icon/"
    ScriptAlias /awstats/ "F:/WebSite/AWStats/wwwroot/cgi-bin/"
    #
    # This is to permit URL access to scripts/files in AWStats directory.
    #
    <Directory "F:/WebSite/AWStats/wwwroot">
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Don't forget to add an entry to your c:\windows\system32\drivers\etc\hosts file so the browser can find it.

And if you're on a Windows system, uncomment this line in httpd.conf as well:

Code: [Select]
ScriptInterpreterSource registry

Finally, edit the awstats.pl file and change this line:

Code: [Select]
#!/usr/lib/bin

To:

Code: [Select]
#!F:/WebSite/ActivePerl/bin/

(Adjust the path as needed. It should point to the perl.exe directory.)

That should take care of it.

As always, YMMV. It works for me. :-)

Have fun!
...jim

Offline admwright

  • Newbie
  • *
  • Posts: 1
Re: Install Awstats on your home PC - Tutorial
« Reply #42 on: September 20, 2006, 05:37:39 AM »
The tutorial looks good, nice and easy to follow.

the problem I have is that when I run the perl script to create the stats

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

all I get is the usage details of the script. So perl is working correctly, and I have my conf file set-up as per the tutorial, but there is no error message to say what is going wrong.

Can any one help?

All the best
Andrew W.

Offline KatieP

  • Newbie
  • *
  • Posts: 1
Re: Install Awstats on your home PC - Tutorial
« Reply #43 on: November 21, 2006, 05:22:10 AM »
Guess I'm not the geek I thought I was   :D
I installed both programs and got all the way to the awstats_configure.pl and keep getting "not recognized as an internal or external command, operable program or batch file.  Maybe it's the way I'm placing it in my C directory?  Could you please tell me how the program should read in my C directory for the commands to work, so I can doublecheck? ....and maybe you have some insights as to why it's not working?  Thanks.

Offline Fly Fort

  • Spacescooter Operator
  • *****
  • Posts: 45
Re: Install Awstats on your home PC - Tutorial
« Reply #44 on: February 22, 2007, 11:56:26 AM »
Hi,

little question.

If you want to upgrade your stats, then you have to download again the latest file from your server.
Do you have to do we have to run also the last steps from the installation???
Or do we just have to replace the old file by the new one???

Quote
Quote
Section 3 - Downloading Log Files
1. Note: We are going to download the initial log file.  This is how I do it, there are multiple ways to get a hold of this file.

2. Open up cPanel, then click on "Raw Log Manager", then what you might want to do if it's not already checked is check the first box, "Archive Logs in your..." and click "Save"

3. Now under "Archived Raw Logs" click on the file with the domain you are running stats for and the current month.  This should start a download.  Open the file (I use WinRAR), and you will notice a file with your domain name.  This is your archived raw access log.

4. Extract the file to C:\awstats-6.2\logs, then navigate to that directory using Windows Explorer.  You should see a file in that directory with your domain name.  Rename the file to whatever you chose in Section 2 Step 3 (yourname.log).  Windows will prompt you saying are you sure you wanna change the filetype, click "Yes".


Quote
Section 4 - Fiiiinally Running Awstats
1. Now we are finally ready to run Awstats and generate some stats.  If everything was done correctly you shouldn't have any problems with the following steps.

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

6. This might take a while too, as Awstats is creating the html page so that you can view your stats.  Once you get back to the command prompt, go to Windows Explorer, nagivate to:
C:\awstats-6.2\wwwroot\cgi-bin
and there should be a file in there called "stats.html"
Double click on that bad boy and hopefully you should be staring at your oh-so-wonderful stats.

Thx in advance

 

Share |