• Auto Update AWStats on WAMP

    Schedule an automatic AWStats update of your web sites

    This tutorial is split into five chronological sections:

    Pages

    Installing AWStats on WAMP

    Auto Update AWStats on WAMP

    Create Additional AWStats WAMP Profiles

    Install GEO IP on AWStats WAMP

    Auto Update GEO IP AWStats WAMP

    To schedule AWStats to autupdate a web site profile on Windows WAMP (WampServer), you have to schedule it using Windows built-in Task Scheduler. The Windows scheduler will update a script I wrote, so you don’t have to manually update via cmd. The script will also run siliently (invisible) so there are no annoying pop up cmd windows.

    IMPORTANT
    I am using my site, webdevster.com as an example. You must substitute webdevster.com related entries with your Windows environment

    Step 1:

    Create a new directory tasks, like so:

    c:\wamp\tasks

    Step 2:

    Create a blank text file and rename it to update_webdev.bat, in the following directory like so:

    c:\wamp\tasks\update_webdev.bat

    Step 3:

    Edit update_webdev.bat, with any simple text editor. Copy and paste the following:

    perl c:\wamp\bin\AWStats\wwwroot\cgi-bin\awstats.pl -update -config=webdev

    Step 4:

    Create a blank text file and rename it to update_webdev.vbs, in the following directory like so:

    c:\wamp\tasks\update_webdev.vbs

    Step 5:

    Edit update_webdev.vbs, with any simple text editor. Copy and paste the following:

    Set WshShell = CreateObject("WScript.Shell")
    WshShell.Run chr(34) & "c:\wamp\tasks\update_webdev.bat" & Chr(34), 0
    Set WshShell = Nothing

    Step 6:

    Alternately, you can download the zip containing both these files here.

    Create a Windows Schedule in Control Panel > Scheduled Tasks to run, update_webdev.vbs however many times you like.

    Scheduling AWStats web site profile to update in Windows

    Continue to next page….SECTION 3. Create Additional AWStats WAMP Profiles (web site profiles in Windows)

    Pages: 1 2 3 4 5

    This entry was posted on Sunday, February 14th, 2010 at 11:09 am and is filed under How To, Web Dev. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
  • 0 Comments

    Take a look at some of the responses we've had to this article.

  • Post a Comment

    Let us know what you thought.

  • Name:

    Email:

    Website:

    Message: