HowTo Install AWStats With Some PlugIns On A Server With ISPConfig

Want to support HowtoForge? Become a subscriber!
 
Submitted by TobiasTM (Contact Author) (Forums) on Tue, 2006-11-07 22:05. :: ISPConfig | Control Panels | ISPConfig

HowTo Install AWStats With Some PlugIns On A Server With ISPConfig 

HowTo install AWStats with some plugins on a server with ISPConfig: based and abutted to the instructions for installation of AWStats-installer of jnsc I wrote this HowTo for installations with some plugins.

Let me say first: This is one way of many possible, but I try this more than one time and it works.

You will need:
  • a Strato - Dedicatet Server
  • WinSCP3 and Putty or similar software on your computer at home

  • Anyway I must say to you, too => If you use this HowTo you do it on your own risk ! The AWStats-installer is in Beta-state ! If you have question mail me or send me a PM.

    If you want to have it in german language please mail me, too.

    Wer diese Anleitung auf deutsch haben möchte, muss mir nur eine eMail oder PN schreiben.

    STEP 1 - Download and install AWStats

  • login your server as root by Putty
  • change directory and download the archive by copy and paste in Putty
  • cd /usr/src

    wget http://jnsc.ch/downloads/ISPConfig_awstats_pkg_beta-3.tar.gz

  • now extract the archive, change to the directory and install it
  • tar -xvzf ISPConfig_awstats_pkg_beta-3.tar.gz

    cd ISPConfig_awstats_pkg

    ./install.sh

  • now you can run AWStats to generate the first static-statistic-sites.
  • /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php

    STEP 2 - Download and install a geographic localizer for IP´s

    cd /root

    wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

    tar xzvf GeoIP.tar.gz

    cd GeoIP-1.4.0

    ./configure

    make

    make check

    make install

    wget http://www.maxmind.com/download/geoip/api/perl/Geo-IP-1.27.tar.gz

    tar xzvf Geo-IP-1.27.tar.gz

    cd Geo-IP-1.27

    perl Makefile.PL

    make

    make test

    make install

    perl -MCPAN -e shell

    install Net::XWhois

    q

  • now you have to change some settings in the AWStats configuration-file
  • open and edit the file /etc/awstats/awstats.shared.conf
  • Lang="de" (line 892 - "de" is an example)
    ShowScreenSizeStats=1 (line 1021)
    ShowMiscStats=anjdfrqwp (line 1041)
    LoadPlugin="geoip GEOIP_STANDARD /root/GeoIP-1.4.0/data/GeoIP.dat"(Zeile 1289)
    If you want to use AWStats in applicable extent, you have to copy the javascript to every site on your server and include the following line into your index:
    <script language="javascript" src="/js/awstats_misc_tracker.js"></script>
    
    <noscript><img src="/js/awstats_misc_tracker.js?nojs=y" height="0" width="0" border="0"style="display: none"></img></noscript>

    You can find the javascript here: /home/admispconfig/ispconfig/tools/awstats-6.5/wwwroot/js

    Run the AWStats-script to create the statistic-files

    /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php


    Please do not use the comment function to ask for help! If you need help, please use our forum.
    Comments will be published after administrator approval.