how do I check awstats?

Discussion in 'Installation/Configuration' started by newfuture, Jan 21, 2009.

  1. newfuture

    newfuture New Member

    I am a noob here, please bear with me.

    I've installed awstats in ispconfig according to

    however, now I do not know where and how to access awstats through browser.

    There is no link to awstats in the tools section of ispconfig.
    I've noticed awstats folder was created under each domain, but when I point to that folder, it asks me to enter id/pass which I have no idea about. I tried my user and root accounts but none works.

    How can I check my stats through internet browser?

    Thank you!
  2. jnsc

    jnsc rotaredoM Moderator


    The user/password that is asked is the one of the website, but if you are the admin of the server you can add a special user wich can have access to all stats of the server

    Management > Server > Settings > Other > Global Webalizer Website Statistics Login

    Even if it's mentioned only for webalizer it also works for awstats, but you have to wait that the stats are regenerated (4 am) or you have to regenerate them manually if you want the statsadmin user to become active.
  3. newfuture

    newfuture New Member

    Thank you for replying,

    i've added a user info in "Global Webalizer Website Statistics Login"
    and generated the statistics using

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

    however, I am not able to login to the awstats folder on websites.

    Am I missing something? Do I need to restart my server?

    Thanks for your help!
  4. falko

    falko Super Moderator ISPConfig Developer

    Do you get any error messages? Does the stats folder exist?
  5. newfuture

    newfuture New Member

    I get no errors, and the awstats folder exists under each domain.
    I am simply not able to login
  6. jnsc

    jnsc rotaredoM Moderator

  7. newfuture

    newfuture New Member

    I pointed to
    and got "404 Error - File not found!"

    I have not used any stats software yet, so I have no idea whether it works or not.

    I installed my system according to the Perfect Server for Centos 5 guide and ISPconfig according to official guide.

    So I am really not sure what is going on.
    Thanks for your help..
  8. jeffrey

    jeffrey New Member

    Have you try
  9. jeffrey

    jeffrey New Member

    It works

    Sorry, it should be

    I had same problem with Global Website Statistics Login for AWstats. It was missing code to add the global user you specified in each site's .htpasswd file. I have changed /root/ispconfig/scripts/shell/awstats.php with same code from webalizer.php. Detail as follows. Hope this help.

    45 $global_stats_user = trim($server['global_stats_user']);
    46 $global_stats_password = trim($server['global_stats_password']);
    47 if($global_stats_password != ''){
    48 //calculate 2/8 random chars as salt for the crypt // by bjmg
    49 if($go_info["server"]["password_hash"] == 'crypt') {
    50 $salt="";
    51 for ($n=0;$n<2;$n++) {
    52 $salt.=chr(mt_rand(64,126));
    53 }
    54 } else {
    55 $salt="$1$";
    56 for ($n=0;$n<8;$n++) {
    57 $salt.=chr(mt_rand(64,126));
    58 }
    59 $salt.="$";
    60 }
    62 $global_stats_password = crypt($global_stats_password, $salt);
    63 }

    127 if($global_stats_user != '' && $global_stats_password != '') $ht_file .= $global_stats_user.":".$glob al_stats_password."\n";
  10. newfuture

    newfuture New Member

    I think my webalizer doesn't work neither, because there is no stats folder at all, not speaking of or

    Also, where should I paste the above code in awstats.php?
  11. jeffrey

    jeffrey New Member

    If you use the same version as I do, the number on the side is the line number in awstats.php file.

Share This Page