PDA

View Full Version : how do I check awstats?


newfuture
21st January 2009, 07:43
Hello,
I am a noob here, please bear with me.

I've installed awstats in ispconfig according to

http://jnsc.ch/ispconfig.php

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!

jnsc
21st January 2009, 10:01
Hi,

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.

newfuture
21st January 2009, 12:02
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!

falko
22nd January 2009, 15:09
Do you get any error messages? Does the stats folder exist?

newfuture
22nd January 2009, 15:38
I get no errors, and the awstats folder exists under each domain.
I am simply not able to login

jnsc
22nd January 2009, 17:30
Does it work with webaliser (http://my-website.com/stats)?

newfuture
22nd January 2009, 19:45
I pointed to domain.com/stats
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..

jeffrey
22nd January 2009, 23:21
Have you try domain.com/stats/index.php?

jeffrey
22nd January 2009, 23:53
Sorry, it should be domain.com/stats/index.html.

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 }
61
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";

newfuture
23rd January 2009, 05:52
I think my webalizer doesn't work neither, because there is no stats folder at all, not speaking of example.com/stats/index.php or example.com/stats/index.html

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

jeffrey
23rd January 2009, 06:08
If you use the same version as I do, the number on the side is the line number in awstats.php file.