AWStats Installer

Discussion in 'Tips/Tricks/Mods' started by jnsc, Oct 6, 2006.

  1. jnsc

    jnsc rotaredoM Moderator

    rons_rons
    You have to enable the statistics (Webalizer) for each website. AWStats only generate statistics for site that have the statistics option enabled.
     
  2. BlueStream

    BlueStream New Member

    No worries mate..

    Just wondering though.. are the stats lost forever? cuz it's the first time one my sites got such high hits.. And I'm like very proud of it.. I know it sounds silly but... u know.. :p

    Happy New Year guys!
     
  3. jnsc

    jnsc rotaredoM Moderator

    No you can have a look at page 6 of this thread, there is a solution for generating statistics for the previous month. But It looks like the -logfile directive does not work on command line. So you might have to temporary edit the /etc/awstats/awstats.www.mydomain.com.conf and change the LogFile directive to something like /home/www/webX/log/2006/12/web.log
     
  4. jnsc

    jnsc rotaredoM Moderator

    New version has been released wich hopefully fixes definitively the last day of month bug.

    The update procedure is as usual exept that this time the awstats package has also been updated. So just execute this commands :

    Code:
    tar xvfz awstats-6.6.tar.gz -C /home/admispconfig/ispconfig/tools
    Code:
    chmod 755 /home/admispconfig/ispconfig/tools/awstats-6.6/
    Code:
    rm /home/admispconfig/ispconfig/tools/awstats
    Code:
    ln -s /home/admispconfig/ispconfig/tools/awstats-6.6 /home/admispconfig/ispconfig/tools/awstats
    That's it
     
  5. jfruano

    jfruano New Member

    How to modify link of the logo awstats to open the new page in the same window ? (target='self')

    Thanks and Happy New Year ¡¡
     
  6. 4integration

    4integration New Member

  7. jnsc

    jnsc rotaredoM Moderator

  8. jfruano

    jfruano New Member

    the link of the logo awstats that is in the right of the header that redirect to the awstats project. I like to open in the same window.

    Thanks jnsc.
     
  9. jnsc

    jnsc rotaredoM Moderator

    As this is generated automatically by AWStats, I don't think it's possible. The tool that is used to generate thes statistics is awstats_buildstaticpages. You may have a look at it, but I am not sure it will be very helpful. It might be better to search the web for a way to customize the AWStats output.

    Regards
     
  10. 4integration

    4integration New Member

    I made a small modification of install.sh because the script didn't backup my httpd.conf. My version looks as:
    Code:
    #!/bin/sh
    mkdir /etc/awstats
    cp awstats.shared.conf /etc/awstats/awstats.shared.conf
    chmod 644 /etc/awstats/awstats.shared.conf
    cp awstats.php /root/ispconfig/scripts/shell/awstats.php
    chmod 644 /root/ispconfig/scripts/shell/awstats.php
    
    
    # Decompress Awstats in the /tools directory
    tar xvfz awstats-6.6.tar.gz -C /home/admispconfig/ispconfig/tools
    chmod 755 /home/admispconfig/ispconfig/tools/awstats-6.6/
    ln -s /home/admispconfig/ispconfig/tools/awstats-6.6 /home/admispconfig/ispconfig/tools/awstats
    
    # First backup the Apache configuration
    # Adding Apache Alias (Very experimental)
    # Restart Apache
    if [[ -e /etc/apache2/apache2.conf ]]
    then
      cp -p /etc/apache2/apache2.conf /etc/apache2/apache2.conf.ispcfg_awstats_bkup
      sed -i -f apache.sed /etc/apache2/apache2.conf
      /etc/init.d/apache2 restart
    elif [[ -e /etc/httpd/conf/httpd.conf ]]
    then
      cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.ispcfg_awstats_bkup
      sed -i -f apache.sed /etc/httpd/conf/httpd.conf
      /etc/init.d/httpd restart
    elif [[ -e /etc/apache2/default-server.conf ]]
    then
      cp -p /etc/apache2/default-server.conf /etc/apache2/default-server.conf.ispcfg_awstats_bkup
      sed -i -f apache.sed /etc/apache2/default-server.conf
      /etc/init.d/apache2 restart
    fi
    
    # Adding a Cron Job
    crontab -l > /tmp/crontab.lst
    sed -i -f crontab.sed /tmp/crontab.lst
    crontab /tmp/crontab.lst
    
     
  11. jnsc

    jnsc rotaredoM Moderator

    Thank's for your contribution.
     
  12. IKShadow

    IKShadow New Member

    I notice I dont get statistic for last day in month.

    Any idea whats wrong.
     
  13. TobiasTM

    TobiasTM New Member HowtoForge Supporter

    Install the newest Version (alpha-8) from jnsc´s homepage. I think he fixed this known bug ;) I hope, that should work right then....
     
  14. rons_rons

    rons_rons New Member


    where do i enable this statistics thingy?
     
  15. TobiasTM

    TobiasTM New Member HowtoForge Supporter

    Hi rons rons,

    follow these steps:
    • login at your ISPConfig-Installation as admin
    • go to "ISP Manager"
    • open there the web you want
    • in the right window you should see now the basis-informations
    • click there on "Options"
    • scroll down to "Webalizer- Statistics" and mark the field
    • save the settings, wait 24h and then you should have the statistics you want / need.

    I hope it works - and you understand what I mean in every step ;-)
     
  16. jnsc

    jnsc rotaredoM Moderator

    Are the stats of the last day of month working this time?

    Thank's for you reports
     
  17. BlueStream

    BlueStream New Member

    yea...........
     
  18. Edi

    Edi Member

    Everything is working

    Thanks

    Edi
     
  19. jnsc

    jnsc rotaredoM Moderator

    Nice, thank's for the report :)
     
  20. jfruano

    jfruano New Member

    Yes, works fine ;) . Thanks
     

Share This Page