Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Please Help Getting It To Run

Reply to Post Add a New Topic
UserPost

9:10 pm
October 27, 2008


brianguy

Guest

Hi All,

I recently took over maintaing a webserver running IIS 6.0 and Awstats is already installed on the box. Is there a guru that can step me thru getting it to run? The directories are set up as follows on the server:

There is an AWSTATS directory (the cgi-bin is here – L:\\AWStats\\wwwroot\\cgi-bin); There is a separate WEBSTATS directory, which contains what appear to be saved html result pages grouped by month & year. There is also of course the separate INETPUB directory containing the website.

If possible I want to run the html results from the browser and save them in the WEBSTATS directory with the past results. Can someone please step me thru what I need to do to get it to run? I'm a complete awstats noobie.

Thanks in advance for the help!!

Brian

5:00 am
October 28, 2008


Jean-Luc

Admin

posts 1125

Hi Brian,

I am not sure about what was working, what is still working and what is not working anymore at your site. For example, I do not know if the stats are still automatically updated and if you can browse the HTML pages in the WEBSTATS directory.

8:24 am
October 28, 2008


brianguy

Guest

Hi Jean-Luc,

The HTML pages in the webstats directory are not auto-updated (there is nothing in the folder since he left) – It looks like my predecessor just manually ran AWSTATS at the end of each month to get the stats.

I'm assuming everything is still functional tho, just a matter of the right commands, etc, to make it run. It looks like there's a way to manually do it in the browser and output an html result, which I can then save every month.

Any thoughts on the correct command for this? Nothing I've tried has worked so far.

Thanks again!!

Brian

8:59 am
October 28, 2008


Jean-Luc

Admin

posts 1125

You can manually update the stats if there is an "Update now" link at the top of your AWStats reports, but this link is never available in static HTML reports (the reports that are in your WEBSTATS directory). You might have this link if you can run http://www.your_site.com/cgi-bin/awstats.pl?config=your_config_name from the browser. Even so, I would not click this button before I exactly know which log file will be processed when updating.

You should look in your AWStats config file and find the value of the LogFile directive. There are comments in the config file that explain how to set the LogFile directive. Take into account that AWStats update must always begin with the oldest file. If you use a newer log file first, you will not be able to update the past days.

You can also run the AWStats update from the command line and this allows the use of a -LogFile=C:\\path_to_log_file option that is easier to use. From the command line, you should have something like this:

perl awstats.pl -config=your_config_name -LogFile=C:\\path_to_log_file -update

For information, we can also do this for you for a very small fee. Send me a private message if you are interested.

10:24 am
October 28, 2008


brianguy

Guest

So if I log onto the webserver command line and type

perl awstats.pl -config=your_config_name -LogFile=C:\\path_to_log_file -update

it should then process the logs and output an html file?

My Logfile directive (awstats.stuff.conf) contains the following:

LogFile=”C:/WINDOWS/system32/LogFiles/W3SVC1/ex%YY-4%MM-4%DD-4.log”

LogType=W

LogSeparator=” “

SiteDomain=http://www.stuff.org

HostAliases=”localhost 127.0.0.1 REGEX[^.*\\.stuff\\.org$]“

DNSLookup=1

DirData=”D:/AWStats/data”

DirCgi=”/cgi-bin”

DirIcons=”../images/icon”

AllowToUpdateStatsFromBrowser=0

AllowFullYearView=2

EnableLockForUpdate=0

DNSStaticCacheFile=”dnscache.txt”

DNSLastUpdateCacheFile=”dnscachelastupdate.txt”

SkipDNSLookupFor=”"

AllowAccessFromWebToAuthenticatedUsersOnly=0

AllowAccessFromWebToFollowingAuthenticated
Users=”"

AllowAccessFromWebToFollowingIPAddresses=”"

CreateDirDataIfNotExists=1

SaveDatabaseFilesWithPermissionsForEveryone=1

PurgeLogFile=0

ArchiveLogRecords=0

KeepBackupOfHistoricFiles=0

10:44 am
October 28, 2008


Jean-Luc

Admin

posts 1125

The command I gave will create or update the AWStats database files, but it will not create the HTML reports. When the database is updated, it will be easy to create the new HTML reports.

The AWStats database files are in the DirData directory, as defined in your AWStats config file.

ex%YY-4%MM-4%DD-4.log  in the LogFile directive means that the year, date and month in the log file name must be "time of update - 4 hours".

If not many days are missing, you can run the necessary updates specifying the correct log file name in the command line. Say ex081024.log , then ex081025.log , ex081026.log and ex081027.log .

If many days must be updated, use logresolvemerge.pl as described in AWStats – Other tools – logresolvemerge.pl.

Make a backup copy of the existing AWStats dabase files before you run these steps.

12:26 pm
October 28, 2008


brianguy

Guest

It looks like the database may be getting updated. I checked the \\AWStats\\data folder and I did find a txt file named "awstats102008.stuff.txt" which would appear to point toward a recent update.

Assuming a config name of stuff.org, would your command to run (for 10/20/08) be one long string as follows:

perl awstats.pl -config=stuff e -LogFile=C:\\WINDOWS\\system32\\LogFiles\\W3SVC1\\ex102008.log -update

Thanks for the help!

Brian

12:39 pm
October 28, 2008


brianguy

Guest

The \\AWStats\\data folder definitely appears to be getting updated automatically on the 20th of every month. It contains files ranging from "awstats012004.txt" to "awstats102008.txt"…

Now that I know this, is it easy enough to run the report for stuff.org for say, the month of September 08?

Thanks!

12:52 pm
October 28, 2008


Jean-Luc

Admin

posts 1125

That's good news !

Look at "III. Run reports: Building and reading reports" in AWStats Installation, Configuration and Reporting. As explained, you can generate each section separately or use awstats_buildstaticpages . Don't forget to use the -month=MM -year=YYYY options if you do not generate the report for the current month.

2:55 pm
October 28, 2008


brianguy

Guest

Thanks Jean-Luc,

I'll try running tomorrow and can hopefully get some reports 😉

7:59 am
October 29, 2008


brianguy

Guest

Well, I've found that logs are being auto-updated but now cannot for the life of me get this thing to execute. I've logged onto the webserver ctl prompt and typed the following: (assuming domain is www.stuff.org – latest log file is “awstats102008.stuff.txt“):

perl awstats.pl -config=www.stuff.org -LogFile=D:/awstats/data/awstats102008.stuff.txt

The resulting message is “Can't open perl script “awstats.pl”: No such file or directory

Have also tried running it “in the browser” but every combination I type in yields no results at all. Obviously the command above must not be correct – Anyone see where I'm going wrong??

Thanks!

Brian

8:47 am
October 29, 2008


Jean-Luc

Admin

posts 1125

The command you tried to run is not a command that generates the HTML files.  There is no need to mention a log file in this step. Please refer to "III. Run reports: Building and reading reports" that I mentioned in my previous post.

The error message you got is coming from the fact that Perl does not find the awstats.pl in the directory where it looks for it. Use the absolute path to awstats.pl in the command and Perl will find it.

9:19 am
October 29, 2008


brianguy

Guest

I've scoured "III. Run reports: Building and reading reports” and maybe have applied incorrect syntax somewhere because none of them run.

Given the name of my domain (www.stuff.org) & log file (D:/awstats/data/awstats102008.stuff.txt) can you tell me what the exact syntax of the command should be? That's where I'm having my problem and the documentation is very unclear to someone unfamiliar with the program.

I just want to produce the html output reports like the ones my predecessor produced.

Thanks!

Brian

9:49 am
October 29, 2008


Jean-Luc

Admin

posts 1125

Assuming that awstats.pl  is located in L:\\AWStats\\wwwroot\\cgi-bin , you will have to go to that directory fiirst with :

L:
cd L:\\AWStats\\wwwroot\\cgi-bin

Then, assuming that WEBSTATS is on the L: drive, try :

perl awstats.pl -config=stuff -output -staticlinks -month=09 -year=2008 > L:\\path_WEBSTATS\\awstats.stuff.092008.html

This should create the main report for September. Let me know if this produces the expected result.

10:29 am
October 29, 2008


brianguy

Guest

You rock Jean-Luc!

That created the main report and now that I see it written correctly the command syntax makes a little more sense also.

Now I'll play with it a bit and see if there are more specialized reports I can also run.

Thanks for the help!!! 😉

Brian

1:16 pm
October 29, 2008


brianguy

Guest

Jena-Luc,

One feature of the main report provides a quick look at the Top 10 most popular pages on the website (Pages-URL (Top 10)).

I'd like to display more detail on my most popular pages on the site, but when you click "Full List" in the report I get the following error:

Cannot find 'file:///D:WEBSTATS/awstats.stuff.urldetail.html'. Make sure the path or internet address is correct.

Is there something I can do to get more results or specifically find out how many times my page below was accessed?:

/departments/finance/index.php/

I thought the command might look like this for the ranking of popular pages?:

perl awstats.pl -config=stuff\\urldetail\\ -output -staticlinks -month=09 -year=2008 > D:\\WEBSTATS\\awstats.stuff.urldetail.092008.html

Thanks again!

Brian

1:55 pm
October 29, 2008


Jean-Luc

Admin

posts 1125

Two things to hopefully solve this issue :

- if there is a date stamp in the file name, this must be specified in the -staticlinks option together with the site name. In your example, it is -staticlinks=stuff.092008

- the date stamp will be inserted exactly like this : awstats.stuff.092008.urldetail.html . So you need to specify the destination file name in the same format ("092008" before "urldetail")

2:21 pm
October 29, 2008


brianguy

Guest

Thanks Jean-Luc,

I shifted the date before the urldetail (see below):

perl awstats.pl -config=stuff -output -staticlinks -month=09 -year=2008 > D:\\WEBSTATS\\awstats.stuff.092008.urldetail.html

It outputs a report but doesn't show me the popularity ranking of all the pages on the website (still just the top 10). Is there another command (aside from urldetail) that will report the popularity of the separate pages on the site?

Thanks!!

Brian

3:17 pm
October 29, 2008


Jean-Luc

Admin

posts 1125

My understanding is that you need to run both commands below :

perl awstats.pl -config=stuff -output -staticlinks=stuff.092008 -month=09 -year=2008 > D:\\WEBSTATS\\awstats.stuff.
092008.html
 
perl awstats.pl -config=stuff -output=urldetail -staticlinks=stuff.092008 -month=09 -year=2008 > D:\\WEBSTATS\\awstats
.stuff.092008.urldetail.html

8:40 am
October 30, 2008


brianguy

Guest

It worked like a charm Jean-Luc.

Thanks for hanging in there with me and helping!!

Brian

Reply to Post

Reply to Topic:
Please Help Getting It To Run

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 11
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)