Generate advanced web server access statistics...

 
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: Sat Sep 14, 2002 8:40 pm    Post subject: Generate advanced web server access statistics... Reply with quote

:!: An updated version of this article can be found here.

Some months ago I was involved in a project to help out a web administrator analyzing his Apache log files. We ended up using AWStats, a great web server log analyzer, which shows all possible information from the web server log. A few days ago I tested AWStats on the log files generated by Abyss, and this worked out just fine... after some minor adjustment to the Abyss configuration.

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 4.1.
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.
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 unzip the awstats41.zip archive to my C:\ drive. Inside C:\awstats, you should see 3 directories... docs, tools and wwwroot. Do the following within your C:\awstats directory...:

1. Create 2 new directories, called data and www.
2. Move the directory wwwroot/icon to the new www/ directory. Also move the contents of the wwwroot/cgi-bin/ directory to the new www/ directory.

In your new C:\awstats\www directory, you should see the following directories and files...: icon, lang, lib, awstats.pl and awstats.model.conf.

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


Last edited by TheLinker on Sun Jan 12, 2003 2:25 pm; edited 2 times 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: Sat Sep 14, 2002 8:43 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.

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: Sat Sep 14, 2002 8:45 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.

Because 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: Sat Sep 14, 2002 10:50 pm    Post subject: Re: Generate advanced web server access statistics... Reply with quote

Great article :idea: Thank you for taking the time to write it and make it available to other users :D
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
bhorst
-


Joined: 01 Jul 2002
Posts: 9

PostPosted: Mon Sep 23, 2002 1:21 pm    Post subject: Reply with quote

The Linker:

I just wanted to say thanks! It worked like a charm. Any other suggestions, keep them coming. :)
_________________
Will..

http://www.dsmgarage.com
Back to top View user's profile Send private message
a_FREEbie_Webmaster
Guest





PostPosted: Sat Oct 05, 2002 7:03 pm    Post subject: awstats missing icons after install and config Reply with quote

Many Many Thanks to TheLinker for the posts :
http://www.aprelium.com/forum/viewtopic.php?t=422&highlight=awstats
:lol:
I am NO shark at programming, so I just followed this post and made it work almost first time !!
Alomst, because it were missing the icons at first.

I dont know if I did something wrong at first, but I solved it this way :

I had to make a new Abyss alias called "/icons" to point to "C:\AWSTATS\WWW\ICONS" and 'wam bam' - now we are flying !!
Just need to put something on the web to make other than nimda hit the pages :P

Oh!, and even many'er thanks to people like APRELIUM for making things like Abyss for windows. Not only Linux can have great and VERY cheap software. I bow my head and look forward (!) to the new versions to see what you can stuff into this piece of usefull software !!
Back to top
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Oct 05, 2002 8:48 pm    Post subject: Re: awstats missing icons after install and config Reply with quote

a_FREEbie_Webmaster wrote:
Oh!, and even many'er thanks to people like APRELIUM for making things like Abyss for windows. Not only Linux can have great and VERY cheap software. I bow my head and look forward (!) to the new versions to see what you can stuff into this piece of usefull software !!

Thank you for choosing Abyss Web Server and thank you for believing in its capabilities. We are really very pleased when we read such encouraging words :D
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Guest






PostPosted: Thu Nov 21, 2002 2:01 am    Post subject: Reply with quote

I think i got this working - it works from a batch file, but when i try the abyss webserver it gives me an error:
Error: LogFile parameter is not defined in config/domain file

Setup ('awstats.rchan.myftp.org.conf' file, web server or permissions) may be wrong.

I'm not sure what i've done wrong. The "allow updates from web brower" thing is = 1, so i don't think it's that. If i'm just a special case, i'll just stick to my batch.
Back to top
DLashley
-


Joined: 18 Dec 2002
Posts: 207
Location: New York, NY

PostPosted: Fri Dec 27, 2002 3:34 am    Post subject: Reply with quote

Ok, I configured and installed it ok, and it works. I got the same error (images not showing up), so I used aliases as suggested above, but the images at the stop still aren't showing up.

I probably need to use different aliases, but I don't know what to put.

By the way, thanks very much for this! This is just what I was looking for! :D
_________________
DLashley
Back to top View user's profile Send private message Visit poster's website
DLashley
-


Joined: 18 Dec 2002
Posts: 207
Location: New York, NY

PostPosted: Fri Dec 27, 2002 4:03 am    Post subject: Reply with quote

On second thought, it's not working. It doesn't generate stats for me when I click the update button, and I've got hits.

Oh well, sigh... :(
_________________
DLashley
Back to top View user's profile Send private message Visit poster's website
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Sun Jan 05, 2003 10:05 am    Post subject: Reply with quote

Has anybody got this to work? Have followed instructionss and can get everything to work EXCEPT the Icons. Tried the icon alias thingy, no go. When I bring AWstats up in my browser (IE 5.5) it hangs on any one (not consistant) of the icons.

Since no icons are displayed, they all are recorded as 404s in the log. Trying to set this up 2300+ errors are now in the log. Abyss works fine but the stats program generates its own errors.

Since this thread has been dead for a week, does that mean everybody has figured it out or just given up?

This is my first try at cgi, perl, whatever and so far I am a resounding failure. Any help would be appreciated.

Abyss is great. I can understand the instructions no sweat. Cheers

os w2k pro
Back to top View user's profile Send private message Visit poster's website
tgif
-


Joined: 13 Apr 2003
Posts: 1

PostPosted: Tue Apr 15, 2003 4:14 pm    Post subject: Reply with quote

the icon aliases trick is good
but there is a mistake:
it's not
/icons
awstats\www\icons

but
/icon
awstats\www\icon

!!
i just took of "s" and it worked perfectly!!
Back to top View user's profile Send private message
Gatewayy
-


Joined: 15 Mar 2003
Posts: 109

PostPosted: Tue Apr 15, 2003 4:43 pm    Post subject: Reply with quote

it works perfectly on my site:

http://gatewayy.is-a-geek.net/awstats/awstats.pl?config=gatewayy.is-a-geek.net

make sure you click refresh to update the page :)
_________________
-=Gatewayy=-

My Abyss site!

http://crashhappy.gatewayy.net
Back to top View user's profile Send private message Send e-mail
genechan
-


Joined: 28 May 2003
Posts: 25
Location: Burnaby, BC, Canada

PostPosted: Mon Jun 23, 2003 2:17 am    Post subject: Generate advanced web server access statistics... Reply with quote

I considered AWStats, but want to avoid having to install Perl after having already struggled through installing PHP, MySQL, and phpMyAdmin already. I found serverStats (from http://www.snippetlibrary.com/viewzip.php?siteid=491), which uses PHP and MySQL, and after much fiddling, got it running to the point of it reading Abyss' access.log file. Even after ensuring that access.log was in "Extended" format, serverStats still wasn't able to properly process it -- for some reason, its temporary work file (created by parsing access.log) has every second line = " % %", which causes serverStats to croak.
I'm ready to look for another Web server log analyzer, one that uses PHP and MySQL. Suggestions, please?

Edit: [June 23] By the way, I would prefer a tool that analyzes the Web server log (access.log) rather than requiring the addition of code to every Web page on my server.
_________________
Gene Chan genechan@vcn.bc.ca
Burnaby, BC, Canada gene_chan@telus.net
Little Mountain Brass Band http://lmbb.vabbs.org/
British Columbia Regiment Association Band http://www.geocities.com/BCRegtBand


Last edited by genechan on Tue Jun 24, 2003 12:47 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website ICQ Number
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Mon Jun 23, 2003 2:46 am    Post subject: Reply with quote

I THINK IM GOING TO TRY THIS OUT , Aprelium , can you send me your mailing list program for my server :D
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jun 23, 2003 11:39 pm    Post subject: Reply with quote

os17fan wrote:
I THINK IM GOING TO TRY THIS OUT , Aprelium , can you send me your mailing list program for my server :D

We use Majordomo (freely available) but it is very hard to setup.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
tbog_yang
-


Joined: 27 Jul 2003
Posts: 2

PostPosted: Thu Aug 07, 2003 7:55 am    Post subject: Reply with quote

thx you
it work like a charm 8)
Back to top View user's profile Send private message
Kinjite
-


Joined: 11 Aug 2003
Posts: 5
Location: NY

PostPosted: Wed Aug 20, 2003 5:06 pm    Post subject: awstats help Reply with quote

I followed the txt and everything comes up NEVER UPDATED. Have any Ideas on how to fix this?????????
Back to top View user's profile Send private message Send e-mail AIM Address ICQ Number
AwPhuch
-


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

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

Webalizer works wonders on Abyss!!!

http://awphuch.no-ip.com:1079/usage

Also there is a version of it that will run on a windows box as well

http://www.mrunix.net/webalizer/download.html

Just download the zip file, read the Installation howto and it will work every time...then all you have to do is create a task manager tab and bamo...your up an running in no time.

Brian
AwPhuch
_________________
Back to top View user's profile Send private message
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