Koozali.org: home of the SME Server

AWStats ??

Sonny

AWStats ??
« on: March 11, 2003, 01:21:52 AM »
Hi there!

I have instaled the AWStats rpm (awstats-sme-server-1.0.0-2.noarch.rpm)

And when i wnt to look at the stats i must go in throug the server-manager pannel... and for me as the admin is this just fine...

But i have now 4 hosting's on the server, and i want to show the owner of the sites their own stats..... but how ??
Is there a tool for this, maybe a login thing where a user enters their domain name, and passwod asigned to their domain, and then shows this domain's stats ??
Or can i put the stats out in a public/private folder to the specific user ??

I dont want to give them the admin password!

James Shields

Re: AWStats ??
« Reply #1 on: March 11, 2003, 01:02:25 PM »
Install AWStats in an ibay, then create a config file for each of the domain names you host, and you can then advise each client of the URL. No password needed.

1) First create an ibay with the name "awstats":

Information bay name: awstats
Description: AWStats Web Statistics
Group: everyone
User access: Write=group, Read=everyone
Public access: (As you like it)
Execution of dynamic content: enabled

2) Download the latest AWStats from awstats.sourceforge.net (http://awstats.sourceforge.net/files/awstats.zip)

3) Now you have to move the content of cgi-bin directory (wwwroot/cgi-bin) inside the ZIP file into the cgi-bin directory in the AWStats ibay

4) Now you have to move icon directory (wwwroot/icon) inside the ZIP file into the html directory in the AWStats ibay. The icon directory with content should be a sub-dir inside the HTML directory.

5) Now move the content of the tools directory inside the ZIP file into the cgi-bin directory in the AWStats ibay

You now have to configure AWStats.

6) Inside the cgi-bin directory in the awstats Ibay now need to make a copy of the awstats.model.conf file where you replace the "model" with the domain name that you want to get statistics for.

    ex. (from Windows/Dos)

    C:\>copy awstats.model.conf awstats.www.yourdomain.com.conf

7) Now you have to edit the new .conf file with you favorite editor. Make sure to change the following parameters:

LogFile="/var/log/httpd/access_log"
LogFormat="%virtualname %host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
DNSLookup=1
DirCgi="/awstats/cgi-bin"
DirIcons="/awstats/icon"
SiteDomain="www.yourdomain.com" changed to your domain name.
HostAliases="www.yourdomain.com yourdomain.com localhost 127.0.0.1" changed to your domain name.
AllowToUpdateStatsFromBrowser=1
UseFramesWhenCGI=1 (optional)

8) Now make sure the the awstats.pl file is an executable. Go to the cgi-bin directory and issue the following command.
[root@e-smith ]# chmod 755 awstats.pl

9) use you favorite browser and open the URL:

http://www.yourdomain.com/awstats/cgi-bin/awstats.pl

10) For each virtual domain names, repeat steps 6 & 7, creating a "conf" file for each of the virtual domain names.

11) use your favourite browser and open the URL:

http://www.yourdomain.com/awstats/cgi-bin/awstats.pl?config=www.virtualdomain.com

Sonny

Re: AWStats ??
« Reply #2 on: March 11, 2003, 10:17:00 PM »
hi again!

I have now tryed the things you described...
But i wont work...
i have createt a ibay with the name "awstats"
And then createt an virtual domain awstats.mydomain.dk linktin to the ibay "awstats"

But when i trye to access www.awstats.mydomain.dk/cgi-bin/awstats.pl i get an 404 error.....

Any idear to what i might have don wrong ??

Sonny

Re: AWStats ??
« Reply #3 on: March 11, 2003, 11:42:53 PM »
here are a couple of lines from the httpd/error_log file...

[Tue Mar 11 21:35:49 2003] [error] [client 192.168.0.68] File does not exist: /home/e-smith/files/ibays/ddhosting_/html/cgi-bin/readme.txt
[Tue Mar 11 21:35:58 2003] [error] [client 192.168.0.68] File does not exist: /home/e-smith/files/ibays/ddhosting_/html/cgi-bin/readme.txt

I was trying to access a file placed in another domain's cgi-bin bib.... but as i see it the server trye's to call a fine in the html/cgi-bin bib wich dos not excist... or am i totaly off-road here.... ?

Sonny

Re: AWStats ??
« Reply #4 on: March 12, 2003, 12:17:29 AM »
now i got it to work... allmost... :-(

I can't seam to get the stat program to fetch the old statistics (for other month than this month 3. 2003)
Why ?

And all the icon's are not shoving, but that is probably just an config error from my site os ;-)

Hope for som more help
Sonny

Sonny

Re: AWStats ??
« Reply #5 on: March 15, 2003, 11:38:58 PM »
isne't there anyone that know how to get the old month's stat into the stat prog ??

cos

Send email
« Reply #6 on: June 26, 2004, 08:57:38 AM »
I can get all the statistics no problem with  SME but how do i setup send statistics to  my client via email?