

Running '"/usr/share/awstats/-configdir="/etc/awstats"' to update config Ĭreate/Update database for config "/etc/awstats/.conf" by AW Stats version 6.95 (build 1. Leave out all the HEAD content, and just put a few characters in this file, so you can recognize it by filesize when fetched - I use just the text 'No. It started with some ideas from this post and I also gleaned some useful ideas from this help item. We wanted to generate pages for all months we had history. Place a custom 403 error page in that subdirectory. AWStats comes with a utility called to generate static pages, but it only does the most recent month’s data by default.

Phase 2 : Now process new records (Flush history on disk after 20000 hosts). A work-around (stay with me here) is to do the following: Create a new subdirectory below web root.

Searching new records from beginning of log file. Running '"/usr/share/awstats/by AWStats ve rsion 6.95 (build 1.943)įrom data in log file "perl /usr/bin/ standard < /var/log/maill og |". Running '"/usr/share/awstats/-configdir="/etc/awstats"' to update config localhost.localdomainĬreate/Update database for config "/etc/awstats/ nf" by AWStats version 6.95 (build 1.943)

Phase 1 : First bypass old records, searching new record.ĭirect access after last parsed record (after line 16838) configdirconfdirtoscan awstatsbuildstaticpages allows you to launch AWStats with -staticlinks option to build all possible pages allowed by AWStats -output option. Either by using directly or by using a helper script, named. Usage: now options Where options are: -awstatsprogpathtoawstatspl -configdir. configdir/etc/awstats > /dev/null 2>&1 postrotate /bin/kill.
AWSTATS PL CONFIGDIR CODE
10 #- 11 require 5.005 12 13 use strict 14 15 16 #- 17 # IF YOU ARE A PACKAGE BUILDER, CHANGE THIS TO MATCH YOUR PATH 18 # SO THAT THE CONFIGURE WILL WORK ON YOUR DISTRIB !!! 19 # Following path are the one 20 #- 21 use vars qw / 22 $AWSTATS_PATH 23 $AWSTATS_ICON_PATH 24 $AWSTATS_CSS_PATH 25 $AWSTATS_CLASSES_PATH 26 $AWSTATS_CGI_PATH 27 $AWSTATS_MODEL_CONFIG 28 $AWSTATS_DIRDATA_PATH 29 / 30 $AWSTATS_PATH = '' 31 $AWSTATS_ICON_PATH = '/usr/local/awstats/ # Used only when configure ran on linux 36 $AWSTATS_DIRDATA_PATH = '/var/lib/awstats' # Used only when configure ran on linux 37 38 39 40 #- 41 # Defines 42 #- 43 # For windows registry management 44 my $reg 45 eval ( 'use Win32::TieRegistry ( Delimiter=>"/", TiedRef=>\ $reg )' ) 46 47 use vars qw / $REVISION $VERSION / 48 $REVISION = '20140126' 49 $VERSION = "1.0 (build $REVISION )" 50 51 use vars qw / 52 $DIR $PROG $Extension $Debug 53 / 54 55 use vars qw / 56 57 / 58 # Possible dirs for Apache conf files 59 =( 60 'C:/Program Files/Apache Group/Apache2/conf/nf', 61 'C:/Program Files/Apache Group/Apache/conf/nf', 62 '/Applications/MAMP/conf/apache/nf', 63 '/etc/httpd/nf', 64 '/usr/local/apache/conf/nf', 65 '/usr/local/apache2/conf/httpd.Running '"/usr/share/awstats/by AWStats version 6.95 (build 1.943)įrom data in log file "/var/log/httpd/access_log". AWStats can’t run the update on older months if there are more recent months located in the data directory. There are two methods to generate reports. WStats 6.5, and possibly other versions, allows remote authenticated users to execute arbitrary code by using the configdir parameter to to upload a. The scanned directory is by default /etc/awstats. 4 # - Get Apache config file from registry (ask if not found) 5 # - Change common log to combined (ask to confirm) 6 # - Add AWStats directives 7 # - Restart web server 8 # - Create AWStats config file 9 # See COPYING.TXT file about AWStats GNU General Public License.
AWSTATS PL CONFIGDIR DOWNLOAD
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option.Īlternatively you can here view or download the uninterpreted source code file.įor more information about "awstats_" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 7.7_vs_7.8.ġ #!/usr/bin/perl 2 #- 3 # This script configures AWStats so that it works immediately.
