#21 AWStats not working - logfile problems

closed
None
5
2012-10-11
2000-12-06
Anonymous
No

Discussion

  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.76 [en] (Win95; U)

    I am trying to use AWStats on Windows 2000 that uses IIs 5.0. I have set everything up like it
    says, but obviously I am overlooking something. I get the following error when I try to "awstats.pl
    www.myserver.com"

    Error: Couldn't open server log file C:/WINNT/system32/LogFiles/W3SVC1/exyymmdd.log: No such
    file or directory. Setup (awstats, web server or logfile permissions) may be wrong. See
    README.TXT for informations on how to install awstats.

    The path is correct. I set the log files with the following fields (from the readme.txt) date time
    c-ip c-username cs-method cs-uri-sterm cs-status cs-bytes cs-version cs(User-Agent)
    cs(Referer)

    It was set to something else, but not anymore. Maybe it's doing this because it don't have a
    logfile in the new format yet? If so, how can I produce a logfile manually at any time? I have it
    set up now to generate log files daily.

    Thanks in advance!!!

    Cory Cochran

     
  • Nobody/Anonymous

    Logged In: YES
    user_id=96898
    Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

    The problem you have is AWStats can't find your logfile and
    it seems to be a bad configuration.
    I see in error message that you had set:
    LogFile="C:/WINNT/system32/LogFiles/W3SVC1/exyymmdd.log"
    Try with:
    LogFile="C:/WINNT/system32/LogFiles/W3SVC1/ex"
    (No need of yymmd.log because awstats will add it himself
    when working with IIS5.0 depending on year, month and day).

     
  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.76 [en] (Win95; U)

    That still don't work. I must be doing something wrong. Here's the error message now...

    Error: Couldn't open server log file C:/WINNT/system32/LogFiles/W3SVC1/ex: No such file or directory.
    Setup (awstats, web server or logfile permissions) may be wrong.

    What else can I check or can I change something to get it to work?

    Thanks!!!

    Cory

     
  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.76 [en] (Win95; U)

    Update... Now giving a different error - "Couldn't open file
    C:\Inetpub\wwwroot\cory\awstats122000.tmp.296: Permission denied." The number in there is different
    some times - 720, 472, 1144, 992, etc...

    Thanks,
    Cory Cochran

     
  • Nobody/Anonymous

    Logged In: YES
    user_id=96898
    Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

    OK. This is better. Now AWStats can find your log file but
    it can't work because AWStats needs to have write
    permissions in your C:\Inetpub\wwwroot\cory directory to
    create the working file (file with a number at the end,
    different each time you launch AWStats).
    Permissions can be wrong at several places:
    - First check your web server configuration (you
    need "write" access in the IIS properties of you cory
    directory)
    - Then if your C drive is a NTFS partition, you might have
    bad NTFS permissions in his directory.

    If you can't find how to check/modify your permission, then
    you can do the following this:
    - Change, in config file, the DirData parameter
    into "C:/temp" (or other) to ask AWStats to use this
    directory as the working directory where to write data
    files.

     
  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.76 [en] (Win95; U)

    Got it!!! Had to give write access to the cory folder. Then give "everyone" write access in the NTFS
    properties.

    Thanks!!!

    Cory Cochran

     

Log in to post a comment.