in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

Last post 04-06-2009 8:38 AM by prostoemailee. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 04-02-2009 9:19 AM

    Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

    I am trying to get AwStats to work on a test environment before deploying to live. I have followed 

    http://www.dotnetpanel.com/Downloads/?CategoryID=7

    http://help.dotnetpanel.com/Third-Party%20Products/IIS%206.0%20Web%20Server%20Installation%20and%20Configuration.aspx

    http://help.dotnetpanel.com/HOW-TO/How%20to%20Secure%20AWStats.aspx

    http://help.dotnetpanel.com/Third-Party%20Products/AWStats%20Installation%20and%20Configuration.aspx

    http://help.dotnetpanel.com/Administrator%20Guide/Setting%20up%20Server%20Services/AWStats%20Provider%20Settings.aspx

    http://www.ihsen.com/support/InstallingAWStatsOnIIS6.pdf

    My provider settings are as follows

    AWStats CGI-BIN Folder Location: %SYSTEMDRIVE%\Inetpub\webstats\cgi-bin

    Batch File Name: UpdateStats.bat

    Batch File Line Template: %SYSTEMDRIVE%\perl\bin\perl.exe awstats.pl config=[DOMAIN_NAME] -update

    Configuration File Template:
    LogFormat = "date time s-sitename 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 sc-bytes"
    LogSeparator = " "
    DNSLookup = 2
    DirCgi = "/cgi-bin"
    DirIcons = "/icon"
    AllowFullYearView=3
    AllowToUpdateStatsFromBrowser = 2
    UseFramesWhenCGI = 1
    ShowFlagLinks = "en fr de it nl es"
    LogFile = "[LOGS_FOLDER]\ex%YY-3%MM-3%DD-3.log"
    DirData = "%SYSTEMDRIVE%\Inetpub\webstats\data"
    SiteDomain = "[DOMAIN_NAME]"
    HostAliases = [DOMAIN_ALIASES]

    Statistics Help URL:  http://stats.james.test/cgi-bin/awstats.pl?config=[domain_name]

    My original config  as per InstallingAWStatsOnIIS6.pdf works. If I open http://stats.james.test/cgi-bin/awstats.pl?config=model in my browser on the server it opens AwStats and shows data. If I then run awstats.pl -config=model -update from a cmd window it does update the statistics.

    The Problem 

    If I open the statics page through DotNetPanel for the same site. The url is http://stats.james.test/cgi-bin/awstats.pl?config=mydomain.local, AwStats loads but there is no data with the error  "Never updated (See 'Build/Update' on awstats_setup.html page)"

    I have tried running the update via Customer > Hosting Space > Space Home > Advanced Website Statistics, click the Name then update but this does not make a difference.

    Please can someone advise what step I have been missing?

  • 04-02-2009 9:31 AM In reply to

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

     Also, from the AWStats.Viewer-2.2.0 download where does sources folder go as I cannot see this documented?

  • 04-03-2009 3:28 PM In reply to

    • Wizard
    • Not Ranked
    • Joined on 04-02-2009
    • Posts 2

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

    As far as my set up... I've always had to create a windows scheduled job to run the UpdateStats.bat as that is the file that will update your stats. I have mine scheduled to run once a day.
  • 04-04-2009 1:38 PM In reply to

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

    Hi,

    I'd suggest you to try to update stats manually, as it will help to identify the problem more accurate.

    Launch cmd, cd to AWStats cgi-bin dir, type: perl awstats.pl -config=mydomain.local

    See what it says. If your config is OK, then you should see text + "10 new records added" (or similar). If not it'll tell what's the problem.

    Anyway, before implementing it with DNP make sure AWStats works fine from command line. Then check DB file is created in DataDir, in your case it should be named awstats042009.mydomain.local.txt. Make sure this file is not empty and contains records (LastUpdate, etc.). Open it with WordPad to check.

    Then continue to troubleshoot in the browser.

     

    See this post for help as well: http://forum.dotnetpanel.com/forums/t/5378.aspx

    Regards,
    Jegor.
  • 04-04-2009 1:41 PM In reply to

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

    marksmyth:

     Also, from the AWStats.Viewer-2.2.0 download where does sources folder go as I cannot see this documented?

    It's just a source code, no need for that. Only "bin" folder required.

    Regards,
    Jegor.
  • 04-06-2009 8:18 AM In reply to

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

     I thinkgetting somewhere now. The file that the webstats creates, in my test case"awstats.mydomain.local.conf" does not have the HostAliases section filed in. See below.

    LogFormat = "date time s-sitename 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 sc-bytes"
    LogSeparator = " "
    DNSLookup = 2
    DirCgi = "/cgi-bin"
    DirIcons = "../icon"
    AllowFullYearView=3
    AllowToUpdateStatsFromBrowser = 2
    UseFramesWhenCGI = 1
    ShowFlagLinks = "en fr de it nl es"
    LogFile = "C:\HostingSpaces\customer1\mydomain.local\logs\W3SVC126927644\ex%YY-3%MM-3%DD-3.log"
    DirData = "C:\Inetpub\webstats\data"
    SiteDomain = "mydomain.local"
    HostAliases = ""

    When I run this at a cmd prompt I get an error, 

    C:\Inetpub\webstats\cgi-bin>awstats.pl -config=mydomain.local -update
    Create/Update database for config "C:\Inetpub\webstats\cgi-bin/awstats.mydomain.local.conf" by AWStats version 6.9 (build 1.925)
    From data in log file "C:\HostingSpaces\customer1\mydomain.local\logs\W3SVC126927644\ex090406.log"...

    Warning: HostAliases parameter is not defined, awstats choose "mydomain.local localhost 127.0.0.1".
    Error: Couldn't open server log file "C:\HostingSpaces\customer1\mydomain.local\logs\W3SVC126927644\ex090406.log" : No such file or directory

    Setup ('C:\Inetpub\webstats\cgi-bin/awstats.mydomain.local.conf' file, web server or permissions) may be wrong.
    Check config file, permissions and AWStats documentation (in 'docs' directory).

    If I manually fill is the HostAliases section then all works correctly.

    Is it normal that the update process is only ran for the current day? (Hence the need to run the update task once or more times a day)

  • 04-06-2009 8:33 AM In reply to

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

    It seems that someone else had this problem. I have tried their fix and it works!

    http://forum.dotnetpanel.com/forums/p/5378/25425.aspx

    Now just need to get the directories secured per customer then JAWStats working then I will be happy

  • 04-06-2009 8:38 AM In reply to

    Re: Trouble getting AwStats to work - Never updated (See 'Build/Update' on awstats_setup.html page)

    Hi,

    Yes, the HostAliases param is mandatory.

    As for stats update, as far as I've seen large hosting companies run stats update once a day for the previous day.

    Regards,
    Jegor.
Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems