Advanced web server statistics with AWStats v5.3

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Sun Jan 12, 2003 1:46 pm    Post subject: Advanced web server statistics with AWStats v5.3 Reply with quote

Update: You can also find this tutorial here.

Hi all... this is an updated (and bugfixed) article on how to use AWStats to generate advanced web server statistics from the Abyss log files. My previous "how-to" article can be found here.
AWStats is a perl script and can be run in CGI mode and from command line. The following preparation needs to be done before you install and configure AWStats...:

1. Download the latest stable version from http://awstats.sourceforge.net/. At this time it is version 5.3.
2. Make sure you have configured Abyss to run perl script, as described on http://www.aprelium.com/abyssws/perl.html.
3. Open the Abyss Console and go to Server Configuration > Advanced > Server Parameters. Set Extended Logging Format to Yes. If this is already done, and you are sure the log only has data in the extended logging format... skip the next instruction.
4. Delete your current Abyss log files, as you need to get access information in the extended logging format.

Now it's time to install AWStats. In this example I use c:\awstats as the program directory for AWStats. Unzip the awstats-53.zip archive to your c:\ drive. Rename the directory c:\awstats-5.3 to c:\awstats. If done correctly, you should see 3 directories inside your c:\awstats...: docs, tools and wwwroot. Do the following within your c:\awstats directory...:

1. Create 1 new directory called data.
2. Rename the wwwroot directory to www.
3. Move the contents of the directory c:\awstats\www\cgi-bin\ to the c:\awstats\www\ directory.
4. After the above operation is done, your www\cgi-bin\ directory should be empty. You can delete www\cgi-bin\.

Inside your c:\awstats\www directory, you should see the following directories and files...: icon, lang, lib, plugins, awstats.pl and awstats.model.conf.

Now it's time to make a configuration for your site. The next message will tell you how...[/b]


Last edited by TheLinker on Sun Jan 19, 2003 1:14 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Sun Jan 12, 2003 1:47 pm    Post subject: Make a configuration for your site Reply with quote

I am not an expert in all the configuration details on AWStats, so I'll just describe the basics.

Make a copy of the file awstats.model.conf and call it awstats.mysite.no-ip.com.conf. Change the mysite.no-ip.com part of the filename to what your site name is... e.g. awstats.www.mysite.com.conf. It's just a filename, so don't worry about the site name being registered.

Open the newnamed conf file in your favourite notepad editor. Look for the following sections in the file, and change accordingly:

LogFile= Set this to the location of your log file... e.g.
LogFile="C:/Program Files/Abyss Web Server/log/access.log"

LogFormat=1 , Remember we changed the log format for Abyss. This is why.

DirData="C:/awstats/data" , Storage directory for statistical data. This is where the new data directory is in use.

DirCgi="/awstats" , We need to make an alias later.

DirIcons="/awstats/icon", A path to the AWStats icons.

SiteDomain= , Set this to your site name... e.g.
SiteDomain="mysite.no-ip.com"

AllowToUpdateStatsFromBrowser=1 , This makes it possible to update the statistics from the web. Read the notes for this switch.


Save the conf file, and keep on reading for the final instructions...
Back to top View user's profile Send private message Visit poster's website
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Sun Jan 12, 2003 1:48 pm    Post subject: Accessible from the web Reply with quote

Now we need to make this perl script accessible from the web. Open the Abyss Console and go to Server Configuration > Advanced > Aliases. Create a new alias, where virtual path is /awstats and real path is c:\awstats\www. It's time to access the statistics for the first time.

Open your web browser and enter: http://mysite.no-ip.com/awstats/awstats.pl?config=mysite.no-ip.com. You must of course enter your site name, and the name of your conf file. In the page being generated, you should see a link called Update now. Click this link to update the statistical data.

If you deleted your current log file, you will not see much data for now. But if your site is frequently visited, you will soon see alot of information about your visitors.

As I wrote earlier, I'm not an expert on AWStats. Read the included documentation and conduct your own experiments with the conf files.

Best of regards... 8)
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jan 13, 2003 12:15 am    Post subject: Re: Accessible from the web Reply with quote

The Linker, thank you for your contribution :D
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
vbgunz
Guest





PostPosted: Wed Jan 15, 2003 2:24 pm    Post subject: Thank you so much for your time in writing the article :) Reply with quote

Excellent 5.3 article... I tried your earlier version but it just didn't work and I thought maybe I should abandon all hope but luckily as I was trying to install awstats as according to the awstats manual I came across this article.

Excellent! it works perfectly now... You are the man and I thought not... Sorry but I was burnt as their was nothing out there that can easily set me up and running in 5 minutes...

Perfect, Keep it up 8O

Thanks!
Back to top
Docster
Guest





PostPosted: Wed Jan 15, 2003 6:21 pm    Post subject: Re: Accessible from the web Reply with quote

TheLinker wrote:
As I wrote earlier, I'm not an expert on AWStats. Read the included documentation and conduct your own experiments with the conf files.

Best of regards... 8)


Works great TheLinker.. :)

Thanks..

Best regards,
Docster
Back to top
TheLinker
-


Joined: 05 Apr 2002
Posts: 165
Location: Oslo, Norway

PostPosted: Sun Jan 19, 2003 1:26 am    Post subject: Re: Thank you so much for your time in writing the article : Reply with quote

Thank you all for these nice comments... :)

To make this article easier to find, I have uploaded it to the following address: http://home.no/thelinker/abyss/awstats/.

Best of regards... 8)
Back to top View user's profile Send private message Visit poster's website
Grundlegod
-


Joined: 01 Dec 2003
Posts: 13

PostPosted: Sun Dec 07, 2003 3:05 am    Post subject: Reply with quote

i kno i kno its a little old but i cant get awstats to work i followed ur tutorial to the bones but all i get at the end is just a bunch of writing :cry: plz help
Back to top View user's profile Send private message
Grundlegod
-


Joined: 01 Dec 2003
Posts: 13

PostPosted: Sun Dec 07, 2003 3:19 am    Post subject: Reply with quote

plz some1 help! :cry: :(
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Sun Dec 07, 2003 5:07 am    Post subject: Reply with quote

Hi Grundlegod--

I just installed the awstats via this thread a few weeks ago. Try checking to see if you have the awstats path in your CGI Paths. Mine looks like this:
/awstats

Also, are you using the current version of Abyss (V1.2.0)?

Regards,
Axis
Back to top View user's profile Send private message
Iwalter
-


Joined: 17 Dec 2003
Posts: 4

PostPosted: Wed Dec 17, 2003 4:10 pm    Post subject: Reply with quote

It worked! I can't believe it worked. I thought I was cursed when it came to the installation of cgi perl stuff. Thank you TheLinker, thank you very much.

One question though, Is there any way I can modify the server console so that I can view my new detailed statistics instead of the basic default ones?
-Ian
Back to top View user's profile Send private message
senmax
-


Joined: 03 Jan 2004
Posts: 4

PostPosted: Sun Jan 11, 2004 7:01 pm    Post subject: Reply with quote

i did as your tutorial said and it worked great!
good job

what i wonder if ther is a possibility to see live stats ??

thanks
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Sun Jan 11, 2004 11:44 pm    Post subject: Reply with quote

Hi senmax--

You might try baretail.exe from:
http://www.baremetalsoft.com/

Regards,
Axis
Back to top View user's profile Send private message
senmax
-


Joined: 03 Jan 2004
Posts: 4

PostPosted: Mon Jan 12, 2004 10:15 am    Post subject: Reply with quote

Axis wrote:
Hi senmax--

You might try baretail.exe from:
http://www.baremetalsoft.com/

Regards,
Axis


Thank you, Axis

i tried it out and will probably use for my ftp server, but i dont understand much what is what in the http log so i dont know what i should hilight :(

bu thanks anyway :roll:
Back to top View user's profile Send private message
AwPhuch
-


Joined: 17 Aug 2003
Posts: 19
Location: Houston, Tx

PostPosted: Fri Jan 16, 2004 5:46 pm    Post subject: Reply with quote

Got a screenshot of working AWStats? or a linky??

P.S. Webalizer does this as well but isnt as flashy

Brian
AwPhuch
_________________
Back to top View user's profile Send private message
some random person
-


Joined: 06 Oct 2003
Posts: 128
Location: I live here! At my house!

PostPosted: Fri Jan 16, 2004 7:21 pm    Post subject: Error... Reply with quote

Hmm... I "think" I followed the steps correctly but something is messed up... When I go to the page that should view the stats, I get this error:

Couldn't open config file "awstats.awstats.clan-con.no-ip.org.conf" nor "awstats.conf" after searching in path ",/etc/awstats,/etc/opt/awstats,/etc,/usr/local/etc/awstats": No such file or directory

Setup (Config file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup awstats.
Probobly something dumb on my part...
Edit: I think I have a version 5.9 not 5.3, i'll se if that has anything to do with it.
Ok, that was it. Works now... I think.
_________________
New image comming soon...

Image hosted by abyss powered website
Image copyright some random person (I made it......)
Abyss > Apache (Meaning abyss is better than apache)
My site powered by abyss->(Undergoing construction)
Back to top View user's profile Send private message
NickCR
-


Joined: 04 Feb 2004
Posts: 2

PostPosted: Sun Feb 08, 2004 1:15 pm    Post subject: Thanks for the info Reply with quote

Many thanks for the informtaiton on setting up AW Stats, I have it all working now although I did have one problem that foxed me for a while so I thought I would post it here just in case it can help someone.

On following the instructions all I got was a Error 500 page, I eventually traced this down to the "CGI Scripts' Timeout (seconds)" variable in the CGI Parameters part fo the Aminimistration of Abyss. By increasing the time out from the default of 30 seconds to 60 seconds it all worked fine, I guess this is because I am running on an old machine and it is doing a fair bit (especially as the firwall and virus scanner take up a fair bit of the processor).

Regards

Nick
Back to top View user's profile Send private message
Lobsterkins
-


Joined: 03 Oct 2003
Posts: 16

PostPosted: Thu Apr 01, 2004 10:54 am    Post subject: Reply with quote

This was an excellent tutorial - thank you very much!! :D
Back to top View user's profile Send private message
nrgfm
-


Joined: 25 Feb 2006
Posts: 8
Location: Crawley, West Sussex, England

PostPosted: Sat Aug 19, 2006 11:25 am    Post subject: Re: Advanced web server statistics with AWStats v5.3 Reply with quote

TheLinker wrote:
3. Open the Abyss Console and go to Server Configuration > Advanced > Server Parameters. Set Extended Logging Format to Yes.


I am using Abyss Server X2 (v 2.3.2) and I cannot find this option. I think this could be why I am getting nothing reporting
_________________
The music you want, when YOU want it!
Back to top View user's profile Send private message Visit poster's website
nrgfm
-


Joined: 25 Feb 2006
Posts: 8
Location: Crawley, West Sussex, England

PostPosted: Sat Aug 19, 2006 11:39 am    Post subject: Re: Advanced web server statistics with AWStats v5.3 Reply with quote

nrgfm wrote:
TheLinker wrote:
3. Open the Abyss Console and go to Server Configuration > Advanced > Server Parameters. Set Extended Logging Format to Yes.


I am using Abyss Server X2 (v 2.3.2) and I cannot find this option. I think this could be why I am getting nothing reporting



found it! Go to Server Configuration >Logging > Advanced > Server Parameters. Set Extended Logging Format to Yes.

Thanks, works great now!
_________________
The music you want, when YOU want it!
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group