File permission error installing AWStats


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




File permission error installing AWStats

Add a New Topic Reply to Post
UserPost

7:56 am
April 7, 2008


Steve

Member

Aus

posts 14

Hello forum users,


I have just tried to complete an installation of AWStats from this guide


ihsen.com/support/InstallingAWStatsOnIIS6.pdf


When I get to step 11 - testing and finishing - I have a permission problem.

when it tries to setup the new log file it reports

c:\Inetpub\wwwroot\awstats\cgi-bin/awstats.Mysite.conf' file, web server or permission may be wrong. The config file is read only and everthing is setup as per instructions.

The Perl CGI Extension is not listed in the web service extensions - only PERL is listed after following the guide. Have I done something wrong to not have the Perl CGI extension listed.

If so how do i add the Perl CGI Extension?


Thanks


Windows Web Server 2003

8:28 am
April 7, 2008


Jean-Luc

Admin

posts 231

Hi,


You get this message when running “awstats.pl -config=Mysite -update ” from the command line. The good news is that this means that awstats.pl is running!


Can you paste here the complete error message ? I am interested in the part of the error message before “c:\Inetpub\wwwroot\awstats\cgi-bin/awstats.Mysite.conf' file, web server or permission may be wrong.

3:58 pm
April 7, 2008


Steve

Member

Aus

posts 14

Hi Jean,

Here is the message I receive!


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\stevenl>cd C:\Inetpub\wwwroot\AWStats\cgi-bin

C:\Inetpub\wwwroot\AWStats\cgi-bin>awstats.pl -config=Artstruggle -update
Create/Update database for config “C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.Ar
tstruggle.conf” by AWStats version 6.7 (build 1.892)
From data in log file “C:\WINDOWS\system32\LogFiles\W3SVC1954162661\ex080408.log
“…
Error: Couldn't open server log file “C:\WINDOWS\system32\LogFiles\W3SVC19541626
61\ex080408.log” : No such file or directory
Setup ('C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.Artstruggle.conf' file, web s
erver or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

C:\Inetpub\wwwroot\AWStats\cgi-bin>


Appreciate your help.


4:28 pm
April 7, 2008


Jean-Luc

Admin

posts 231

It seems that the config file is ok, but it looks like the problem is that AWStats cannot read “C:\WINDOWS\system32\LogFiles\W3SVC1954162661\ex080408.log “. Check the permissions of the log file, as it seems that it is not readable by awstats.pl .

8:14 pm
April 7, 2008


Steve

Member

Aus

posts 14

I cleared all log files from this folder as suggested in the guide, I have just now restored an old log file and renamed it “ex080408.log” and ended up with the following command output.


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\stevenl>cd C:\Inetpub\wwwroot\AWStats\cgi-bin

C:\Inetpub\wwwroot\AWStats\cgi-bin>awstats.pl -config=Artstruggle -update
Create/Update database for config “C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.Ar
tstruggle.conf” by AWStats version 6.7 (build 1.892)
From data in log file “C:\WINDOWS\system32\LogFiles\W3SVC1954162661\ex080408.log
“…
Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
Jumped lines in file: 0
Parsed lines in file: 26
Found 20 dropped records,
Found 6 corrupted records,
Found 0 old records,
Found 0 new qualified records.


Now when i try to test this from a browser by typing

http://stats.com/cgi-bin/awstats.pl?config=Artstruggle


I receive this message in the browser

ÿûÿû Welcome to STATS LLC Username: Error reading command input Timeout period expired


Thanks for the help

12:45 am
April 8, 2008


Jean-Luc

Admin

posts 231

You are a step further, but I now see two other problems:


1. Your log format is not compatible with AWStats or not correctly defined in AWStats. That's why all the records are “dropped” or “corrupted”. Check our page about log formats or paste here:

- the line starting with “LogFormat=…” from your AWStats config file;
- a typical line from your log file;
- the line from the log file starting with “#Fields: “.


2. I get the same error message when I go to the home page of http://stats.com/. Is stats.com your website ? If not, then replace stats.com by the domain name of your web site.

6:37 am
April 8, 2008


Steve

Member

Aus

posts 14


-LogFormat

LogFormat=”date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes”


-log file

2008-04-01 03:02:18 202.168.114.165 GET /images/struggle.png - 80 - 202.168.114.165 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 200 0 0


#Fields

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status


I notice a difference between the logformat and the fields but in the guide

I followed ihsen.com/support/InstallingAWStatsOnIIS6.pdf

there where similiar corrupt and dropped record results when running the awstats.pl -update at step 11.

I setup a virtual site under the wwwroot to monitor these stats and called it stats.com.


Thanks

7:15 am
April 8, 2008


Jean-Luc

Admin

posts 231

The format of your log file is not compatible with AWStats. AWStats needs a field with the number of bytes sent by the server to the client (called sc-bytes by IIS and %bytesd by AWStats). This field is used to calculate bandwidth.


You can try this:

LogFormat=”%time2 %other %method %url %query %other %logname %host %ua %code %bytesd %other”

This should work for everyhting but the bandwidth figures.


I looked at the example in the PDF. The screenshot at step 11 is not a very good example. A few “dropped” and “corrupted” records are acceptable, but, with a good real world example, there should be many more “new qualified” records.


I still don't understand this stats.com thing. It is probably easier to work with a subdomain like stats.your_domain.com .

9:02 pm
April 8, 2008


Steve

Member

Aus

posts 14

If I create a subdomain am i able to view other website statistics with AWStats from this subdomain, as i may need to at a later date?

I think I'll delete the virtual site that i have created and start again,

but I'm not sure where this will leave me after creating a new config file when i installed perl.


Would it be a better idea to start again?

If so do you know of a good guide to help me out.

2:45 am
April 9, 2008


Jean-Luc

Admin

posts 231

The subdomain can be used for any website statistics.


I believe that the PDF from Ihsen Consulting (Installing AWStats on IIS) that you mentioned is a good source of information. Another related article is available from WebHost Automation (AWStats Installation with Helm). The original AWStats installation instructions are in this page: AWStats Installation and Configuration.

6:19 am
April 9, 2008


Steve

Member

Aus

posts 14

Jean-Luc

The steps here (AWStats Installation with Helm) don't build the config file during the awstats install and leave all AWStats sub folders in “c:/” which appears a little easier.

I mentioned in my prevoius post about creating a new config file when i installed perl, that should have been when i installed awstats and if i uninstall it then that won't be a problem.

I'm heading off on holiday for a couple of weeks and not sure if i'll get this sorted out before I go. I'll post at a later date and let you know how things work out.

Your help has been greatly appreciated.

Thank You.

7:24 am
April 9, 2008


Jean-Luc

Admin

posts 231

Another thing to consider is to change the format of your IIS log files. At this time, they do not include the sc-bytes field. This field is mandatory to get complete AWStats reports (see previous message). I also recommend to add the cs(Referer) field: this filed contains the address of the page/site from where your visitors are coming. This is often very useful.


Have a nice holiday !

Add a New Topic Reply to Post


Reply to Topic: File permission error installing AWStats

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 8 + 9        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

3 Guests

Maximum Online: 31

Forums:

Groups: 2

Forums: 7

Topics: 109

Posts: 516

Members:

There are 29 members

There are 95 guests


Jean-Luc has made 231 posts

Top Posters:

Steve - 14

angelko - 5

cwei - 4

KevinA - 3

Kinglui - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)