![]() ![]() 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. 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. Hopefully someone smarter then me can help me.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 last 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. I'm pretty sure I set it up correctly but now I cannot figure out why this is happening. It also produced the file in the DatDir: /var/lib/awstats/ which contains what I would expect.īUT when I visit: /awstats/ it tells me Last Update: Never updated (See 'Build/Update' on awstats_setup.html page)Īnd the rest of the page is blank. If DNS lookup was already made by the logger (web server), you should change your setup DNSLookup=1 into DNSLookup=0 to increase awstats speed. Warning: awstats has detected that some hosts names were already resolved in your logfile /usr/share/doc/awstats/examples/ /var/|. Phase 2 : Now process new records (Flush history on disk after 20000 hosts). Searching new records from beginning of log file. Phase 1 : First bypass old records, searching new record. ![]() AWStats is a free powerful and featureful tool that generates advanced web, ftp or mail server statistics, graphically.This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. As instructed I ran a manual build/update which ran fine: sudo -u -config=Ĭreate/Update database for config "/etc/awstats/" by AWStats version 6.9 (build 1.925)įrom data in log file "/usr/share/doc/awstats/examples/ /var/|". AWStats - Free log file analyzer for advanced statistics (GNU GPL). I've setup AWStats on my VPS to get some more insight into the traffic coming to my site. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |