The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Awstats, Geoip How To!

Discussion in 'General Discussion' started by emeric21, Aug 20, 2004.

  1. emeric21

    emeric21 Well-Known Member

    Joined:
    Aug 5, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    I find a way that we can use cpanel awstats with plugins!!

    1/ You must upgrade awstats to latest version (6.1):
    http://forums.cpanel.net/showthread.php?t=25353&highlight=awstats+6.1

    2/Download awstats package from http://prdownloads.sourceforge.net/awstats/awstats-6.1.tgz
    unpack it and move the "plugins" directory here: /usr/local/cpanel/3rdparty/bin/

    3/Go into your ftp program and Go here: /tmp/awstats/.
    download your awstats.yourdomain.com.conf file and add this at the end of the file:
    #-----------------------------------------------------------------------------
    # PLUGINS
    #-----------------------------------------------------------------------------

    # Add here all plugins file you want to load.
    # Plugin files must be .pm files stored in 'plugins' directory.
    # Uncomment LoadPlugin lines to enable a plugin after checking that perl # modules required by the plugin are installed.

    # Plugin: Tooltips
    # Perl modules required: None
    # Add some tooltips help on HTML report pages.
    # Note that enabled this kind of help will increased HTML report pages size, # so server load and bandwidth.
    #
    LoadPlugin="tooltips"

    # Plugin: DecodeUTFKeys
    # Perl modules required: Encode and URI::Escape # Allow AWStats to show correctly (in language charset) keywords/keyphrases # strings even if they were UTF8 coded by the referer search engine.
    #
    #LoadPlugin="decodeutfkeys"

    # Plugin: IPv6
    # Perl modules required: Net::IP and Net::DNS # This plugin gives AWStats capability to make reverse DNS lookup on IPv6 # addresses.
    # Note: If you are interesting in having country report, you should use the # geoipfree or geoip plugin instead of enabled reverse DNS lookup.
    #
    #LoadPlugin="ipv6"

    # Plugin: HashFiles
    # Perl modules required: Storable
    # AWStats DNS cache files are read/saved as native hash files. This increase # DNS cache files loading speed, above all for very large web sites.
    #
    #LoadPlugin="hashfiles"

    # Plugin: GeoIPfree
    # Perl modules required: Geo::IPfree version 0.2+ (from Graciliano M.P.) # Country chart is built from an Internet IP-Country database.
    # This plugin is useless for intranet only log files.
    # Note: You must choose between using this plugin (need Perl Geo::IPfree module) # or the GeoIP plugin (need Perl Geo::IP module from Maxmind).
    # This plugin reduces AWStats speed of 10% !
    #
    #LoadPlugin="geoipfree"

    # Plugin: GeoIP
    # Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind) # Country chart is built from an Internet IP-Country database.
    # This plugin is useless for intranet only log files.
    # Note: You must choose between using this plugin (need Perl Geo::IP module # from Maxmind) or the GeoIPfree plugin (need Perl Geo::IPfree module).
    # This plugin reduces AWStats speed of 10% !
    #
    LoadPlugin="geoip"

    # Plugin: UserInfo
    # Perl modules required: None
    # Add a text (Firtname, Lastname, Office Department, ...) in authenticated user # reports for each login value.
    # A text file called userinfo.myconfig.txt, with two fields (first is login, # second is text to show, separated by a tab char) must be created in DirData # directory.
    #
    #LoadPlugin="userinfo"

    # Plugin: HostInfo
    # Perl modules required: XWhois
    # Add a column into host chart with a link to open a popup window that shows # info on host (like whois records).
    #
    #LoadPlugin="hostinfo"

    # Plugin: UrlAliases
    # Perl modules required: None
    # Add a text (Page title, description...) in URL reports before URL value.
    # A text file called urlalias.myconfig.txt, with two fields (first is URL, # second is text to show, separated by a tab char) must be created in DirData # directory.
    #
    #LoadPlugin="urlalias"

    # Plugin: TimeHiRes
    # Perl modules required: Time::HiRes
    # Time reported by -showsteps option is in millisecond. For debug purpose.
    #
    #LoadPlugin="timehires"

    # Plugin: TimeZone
    # Perl modules required: Time::Local
    # Allow AWStats to correct a bad timezone for user of some IIS that use # GMT date in its log instead of local server time.
    # This module is useless for Apache and most IIS version.
    # This plugin reduces AWStats speed of 40% !!!!!!!
    #
    #LoadPlugin="timezone +2"

    # Plugin: Rawlog
    # Perl modules required: None
    # This plugin adds a form in AWStats main page to allow users to see raw # content of current log files. A filter is also available.
    #
    #LoadPlugin="rawlog"

    # Plugin: GraphApplet
    # Perl modules required: None
    # Supported charts are built by a 3D graphic applet.
    #
    #LoadPlugin="graphapplet /awstatsclasses" # EXPERIMENTAL FEATURE

    Re-Upload the file into your account.

    Next, go into cpanel, click on awstats and go at the end of the page.
    You will see "Advanced Web Statistics 6.1 (build 1.751) - Created by awstats (with plugin geoip, tooltips)"."
    geoip and tooltip work!!!
     
  2. tawfiq

    tawfiq Active Member

    Joined:
    Mar 13, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    i tried ur method, although it does say at the buttom that tooltip is working i am NOT seeing any tooltips in awstats....... am i missing something?
     
  3. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    In which part do we download the Maxmind database?
    Is necessary to enable all the plugins?
     
  4. belse

    belse Member

    Joined:
    Oct 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi emeric21
    I have tried glue the text "plugin" but it does not work to me
    My problem is the GMT the server is USA but I am in Italy and there are 8 hours of difference
    I must make some modification?
    Thanks for the collaboration
     
  5. emeric21

    emeric21 Well-Known Member

    Joined:
    Aug 5, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Humm... i don't know why you get these errors.

    This modification work very good on my servers.
    My new server had it already, i think cpanel upgrade awstats to 6.2
     
  6. Shane_F

    Shane_F Member

    Joined:
    Jan 21, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    You might have to upgrade all the logs by running the updatelogs script. This should change all your sites .conf files.

    Certain users can disable certain pluging by just editing their .conf files and making the files chattr +i so the runlogs script doesn't over write your editing changes.
     
Loading...

Share This Page