Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Dan G. 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.
-
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.
-
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.
-
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.
-
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
-
It's perl/cgi done on the fly against a database file -- can wget handle that?
-
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.)
-
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
-
I'm going to try it out...
Thanks!
Dan G.
-
Dan,
Does it work ?
James