Welcome, Guest
Please Login or Register.
Lost Password?
How To make awstats to generate static pages? (1 viewing)
Post Reply

TOPIC: How To make awstats to generate static pages?

#14841
cadeyrn (User)
Posts: 1
graphgraph
How To make awstats to generate static pages? 2008/07/16 22:51  
Dear Sirs!

I've been using awstats for a time, with one of it's tools, called awstats_buildstaticpages.pl. Because the virtualmin plugin didn't contained it (or just I couldn't find it), I already copied from another server.

My only problem is, that I can't resolve, how can I add this feature for a domain, created with Virtualmin.

I've been looking through the code of virtualmin-awstats-lib.pl, and I've found some lines:
Code:

# generate_report(domain, handle, html-escape?) # Updates the AWstats report for a particular domain, from all of its # log files (or at least those that have changed since the last run) sub generate_report { local ($dom, $fh, $esc) = @_; local $user = &get_run_user($dom); local $cmd = "$config{'awstats'} -config=$dom -update"; $ENV{'GATEWAY_INTERFACE'} = undef;



Can I add a piece of code somehow to manage to build static pages?
I don't want to make this script collapse, so I was afraid to modify it, please help me.

Best regards,
Peter
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.