Koozali.org: home of the SME Server

Making Awstats Visible Externally

Dan G.

Making Awstats Visible Externally
« on: April 11, 2002, 07:58:56 PM »
Has anyone done this?  I'd like to get the output staged somewhere that I can allow certain people access to it, without giving them the priviliges it currently requires.  I tried rsyncing the files to the cgi-bin directory of an active ibay, but there are many permissions and pathing problems with this approach.  Plus, I have no idea what else I might be opening up with this type of approach.

Anyone have any simple, elegant suggestions :)

Dan G.

z00100

Re: Making Awstats Visible Externally
« Reply #1 on: April 12, 2002, 01:41:16 AM »
I too would like to be able to do that.

I understand the fact that being able to view the e-smith-manager from the outside would be somewhat of a security risk, but being a system admin, I would like to be able to view a html page as opposed to sshing into the text based screens.

z00100

Re: Making Awstats Visible Externally
« Reply #2 on: April 12, 2002, 01:41:21 AM »
I too would like to be able to do that.

I understand the fact that being able to view the e-smith-manager from the outside would be somewhat of a security risk, but being a system admin, I would like to be able to view a html page as opposed to sshing into the text based screens.

Dan G.

Re: Making Awstats Visible Externally
« Reply #3 on: April 12, 2002, 02:14:29 AM »
I suspect it woudn't be difficult for someone who understands Perl, but that person is not me :)

I'm thinking it could happen by rsyncing the inside directory via a cron job to a public ibay, then scripting the appropriate changes to permissions.  Of course, the pathing to the new location would need to be coded for a modified version of the awstats.pl script in the public cgi-bin directory --- but again, it's all hypothesis, since my knowledge of programming is, er....weak.
Dan G.

Luke Drumm

Re: Making Awstats Visible Externally
« Reply #4 on: April 12, 2002, 04:00:50 AM »
I haven't looked at the awstats product so I'm flying blind here a bit:

Why not use the 'mirroring' facility of WGet to take an "html image" of the stats and dump them into a password protected ibay?

That way you can show the stats without worring about access issues.

Regards,
Luke

Dan G.

Re: Making Awstats Visible Externally
« Reply #5 on: April 12, 2002, 04:55:53 AM »
It's perl/cgi done on the fly against a database file -- can wget handle that?

Luke Drumm

Re: Making Awstats Visible Externally
« Reply #6 on: April 12, 2002, 09:08:50 AM »
It's accessing the page via Apache just as a browser would so it should work.
You may end with some duplicate images with different names and other odd stuff initially but the end result when viewed through a browser should be the same.

(About the only things likely to not work are things relying upon client side script or applets.)

Stephen Turnbull

Re: Making Awstats Visible Externally
« Reply #7 on: April 13, 2002, 11:08:32 PM »
Here is a script I found on alt.e-smith.fr... it is in french but I can give a rough translation.  The script part is all in English though...

j'ai faits un petit script que execute awstat.pl > fichier.html toutes les
heures .....

... I made a small script to execute awstat.pl >file.html every hour

tu peux voire le résultat a :

... You can view the results at:

> > http://www.memorent.dyndns.org/stats/

a+


et un script pour la quatre, ... un .
... and a script for a quarter ...

*************************************************************************
# stat vers html
cd /home/e-smith/files/primary/cgi-bin

cp /home/e-smith/files/primary/html/stats/result.old.html
/home/e-smith/files/primary/html/stats/result.bak.old.html
cp /home/e-smith/files/primary/html/stats/result.html
/home/e-smith/files/primary/html/stats/result.old.html

./awstats.pl site=www.memorent.dyndns.org
>/home/e-smith/files/primary/html/stats/result.html

cp /home/e-smith/files/primary/html/stats/result.html
/home/e-smith/files/primary/html/stats/index.html

***************************************************************************

voila c'est juste pour moi ...
.... it just works for me

je faits des sauvegardes a chaque fois pour le moment, je vais essaye de les
faire en meme temps que la rotation des logs ... mais beaucoup plus tard
 
... I tried ..... each time for the moment, I am going to try to do the same thing for log rotation.. but much later

    a+


> > je essai les awstats c'est cool

... I just tried awstats and its cool

> Salut,

... Thanks
>

> C'est exactement ce que je cherche,

....It's exactly what I was looking for.

> Merci

Dan G.

Re: Making Awstats Visible Externally
« Reply #8 on: April 13, 2002, 11:40:37 PM »
I'm going to try it out...

Thanks!

Dan G.

James Shields

Re: Making Awstats Visible Externally
« Reply #9 on: January 15, 2003, 01:22:04 PM »
Dan,

Does it work ?

James