3/16/2023 0 Comments Awstats buildstaticpagesAll opinions are mine, and not necessarily those of my employer. On this here blog, I pontificate about all things related to code, work, projects, and sometimes just life. My name is Joshua, and I'm a programmer/developer and a system admin. mf-awstats-build-staticpages << MayFirst Commands Last modified 9 years ago Last. * ) POSITIONAL +=( " $1 " ) # save it in an array for later shift esac done set - " $ " > $OUTPUT_DIR/index.htmlĬat > $OUTPUT_DIR/index.html EOF Comments This script has extensive documentation at setupawstats. But is it possible to manually trigger the system to 'regenerate' the awstats for the past few months (e.g. 1 Answer Sorted by: 5 +100 It seems that script doesnt replace Show config options with its default values. 2012 / 07) everyday, so now there is 2012 July awstats data. download and install the awstats setup add awstats1 to your nf add webalizer0 in your nf (webalizer will be shut off, but you can override it if you want both) NOTE: due to the way the log names are set up in config files, the rotation of Apache logs will be slightly different during the tally. It is found that the ISPConfig cron job generates the awstats data for the current month (e.g. o |-output-dir ) OUTPUT_DIR = " $2 " shift shift Hence the awstats for this domain disappeared. b |-build-static-prog ) BUILD_STATIC_PROG = " $2 " shift shift Can I add a piece of code somehow to manage to build static pages I dont want to make this. See COPYING.TXT file about AWStats GNU General Public License. Ive been using awstats for a time, with one of its tools. a |-awstats-prog ) AWSTATS_PROG = " $2 " shift shift Launch awstats with -staticlinks option to build all static pages. #!/bin/bash POSITIONAL =() AWSTATS_PROG = $(which 2> /dev/null ) BUILD_STATIC_PROG = $(which awstats_ 2> /dev/null ) OUTPUT_DIR = "./" while ] do key = " $1 " case $key in The AWStats create (and update) statistics database command is: perl -configmysite -update where mysite must be substituted with the domain/virtual host name you selected earlier during AWStats configuration. (please, note that the exec(.) invocation have has been replaced with system, in order to continue in the execution after the first command. System($awstats_build) # || die "Error invoking 'awstats_': $!" Numerous changes required in the awstatsprocess.sh. 2) Couldnt access the userlogs to view the given User log for reading. # create dest directory and all its parents. With the change to run awstatsprocess.sh, the security of cagefs caused a few issues: 1) Couldnt access /usr/local/awstats/ to run the perl scripts to compute the stats. System("$root/virtualmin-awstats/", # || die "Failed to run $root/virtualmin-awstats/ : $!" Because the virtualmin plugin didn't contained it (or just I couldn't find it), I already copied from another server. ![]() = BEGIN OF webmin_ patch = #!/usr/bin/perl Dear Sirs I've been using awstats for a time, with one of it's tools, called. If you want to generate static html files run the script found in the tools folder. Ive just upgraded Plesk from 8.0.1 to 8.1 on Fedora 4, using Plesk Updater. Where sitename would be the name of your config file. Hope it can help someone AND/OR virtualmin developers will consider to add in the official distribution AND/OR i can find the time to submit a proper patch:ġ) modify the script (usually you can find it in: /etc/webmin/) as follows: 8.0.1 -> 8.1 Wrong path for Hello there. Databasebreakday mean: summary file will create in daily basis: each day will have it own summary file :. It's mean: each month will have it own summary file :. ![]() I know it is an old question, but I just want to share the little "hacks" i've done in order to solve this issue. Awstats read log file and create summary text file in monthly basis by default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |