Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
centos:web_c7:webstats [13.01.2015 08:16. ] – [erstes Ergebnis] djangocentos:web_c7:webstats [20.01.2015 17:18. ] django
Zeile 1: Zeile 1:
-<WRAP center round alert 60%> +====== Logfileanalyse und -Auswertung mit (Better-)AWStats unter CentOS 7.x ======
-Artikel aktuell in Bearbeitung ... +
-</WRAP> +
- +
-====== Logfileanalyse und -Auswertung mit (Better)AWStats unter CentOS 7.x ======+
 {{:centos:web_c7:awstats_ban_460x270.png?nolink&200|AWStats Logo}} {{:centos:web_c7:awstats_ban_460x270.png?nolink&200|AWStats Logo}}
  
-<WRAP center round important 80%>+<WRAP center round important 60%>
 **WICHTIG:** **WICHTIG:**
  
Zeile 954: Zeile 950:
 </file> </file>
  
-Um nicht später immer einen rießen Rattenschwanz bei der URL mitangeben zu müssen, machen wir noch eine kleine Verschönerungsaktion. In der Konfigurationsdatei ist diese mit **//# URL beautifying//** vermerkt. Somit reicht später zum Abfragen der Webserver-Statistiken des vHOSTS __dokuwiki.nausch.org__: '' $ firefox http://awstats-nginx.nausch.org/dokuwiki.nausch.org''+Um nicht später immer einen rießen Rattenschwanz bei der URL mitangeben zu müssen, machen wir noch eine kleine Verschönerungsaktion. In der Konfigurationsdatei ist diese mit **//# URL beautifying//** vermerkt. Somit reicht später zum Abfragen der Webserver-Statistiken des vHOSTS __dokuwiki.nausch.org__: '' $ firefox http://awstats.nausch.org/dokuwiki.nausch.org''
  
 Haben wir die Konfigurationsdatei vervollständigt, prüfen wir diese noch auf syntaktische Fehler. Haben wir die Konfigurationsdatei vervollständigt, prüfen wir diese noch auf syntaktische Fehler.
Zeile 2835: Zeile 2831:
 {{ :centos:awstats_00.png?nolink&600 |Bild: AWStats Bildschirmhardcopy}} {{ :centos:awstats_00.png?nolink&600 |Bild: AWStats Bildschirmhardcopy}}
  
 +====== Logfileanalyse und -Auswertung mit BetterAWStats unter CentOS 7.x ======
 +Nachdem uns AWStats ja schon viele Dinge bietet, verbessern wir das ganze noch mittels [[http://sourceforge.net/projects/betterawstats/|BetterAWStats]]. Die ganzten Gimicks sind auf der [[http://sourceforge.net/projects/betterawstats/|Projektseite]] ausfürlich beschrieben.
 +
 +Mir persönlich gefällt vor allem neben der optischen Aufmachung, die komfortable Möglichkeit Auswertungen einzelner VHosts zu wechseln.
 +
 +===== Download =====
 +Von der [[http://sourceforge.net/projects/betterawstats/files/latest/download|Homepage]] laden wir uns das aktuelle ZIP-Archiv auf unseren Rechner.
 +
 +Bevor wir nun das besagte Programmarchiv auf unseren Rechner holen, wechseln wir als erstes hierzu in unser Programmquellen-Verzeichnis. Haben wir selbiges noch nicht angelegt, dann ist natürlich noch dieses anzulegen:
 +   # mkdir -p /usr/local/src/packages/
 +
 +Anschließend wechseln wir in unser Verzeichnis:
 +   # cd /usr/local/src/packages/
 +
 +Nun laden wir das Programmarchiv von der [[http://www.awstats.org|Projektseite]].
 +   # wget http://downloads.sourceforge.net/project/betterawstats/betterawstats/1.0/betterawstats-1.0.zip
 +
 +===== Installation =====
 +Das gerade heruntergeladene //tar.gz//-Archiv entpacken wir nun als nächstes.
 +   # unzip betterawstats-1.0.zip -d /usr/share/
 +<code>Archive:  betterawstats-1.0.zip
 +   creating: /usr/share/betterawstats/
 +  inflating: /usr/share/betterawstats/bawstats.info  
 +  inflating: /usr/share/betterawstats/bawstats.install  
 +  inflating: /usr/share/betterawstats/bawstats.module  
 +  inflating: /usr/share/betterawstats/config.php  
 +   creating: /usr/share/betterawstats/core/
 +  inflating: /usr/share/betterawstats/core/config.inc.php  
 +  inflating: /usr/share/betterawstats/core/config_default.inc.php  
 +  inflating: /usr/share/betterawstats/core/data.inc.php  
 +  inflating: /usr/share/betterawstats/core/display.inc.php  
 +  inflating: /usr/share/betterawstats/core/display_helpers.php  
 +  inflating: /usr/share/betterawstats/core/extras.inc.php  
 +  inflating: /usr/share/betterawstats/core/helpers.inc.php  
 + extracting: /usr/share/betterawstats/core/index.html  
 +  inflating: /usr/share/betterawstats/core/language.inc.php  
 +  inflating: /usr/share/betterawstats/core/library.inc.php  
 +   creating: /usr/share/betterawstats/docs/
 +  inflating: /usr/share/betterawstats/docs/FAQ.txt  
 +  inflating: /usr/share/betterawstats/docs/history.txt  
 + extracting: /usr/share/betterawstats/docs/index.html  
 +  inflating: /usr/share/betterawstats/docs/install.drupal.txt  
 +  inflating: /usr/share/betterawstats/docs/install.txt  
 +  inflating: /usr/share/betterawstats/docs/LICENSE.TXT  
 +  inflating: /usr/share/betterawstats/favicon.ico  
 +  inflating: /usr/share/betterawstats/horizontal.css  
 +   creating: /usr/share/betterawstats/icons/
 +  inflating: /usr/share/betterawstats/icons/bar.png  
 + extracting: /usr/share/betterawstats/icons/btn_empty.gif  
 + extracting: /usr/share/betterawstats/icons/circ-blue.png  
 + extracting: /usr/share/betterawstats/icons/circ-green.png  
 +  inflating: /usr/share/betterawstats/icons/collapse.gif  
 +  inflating: /usr/share/betterawstats/icons/empty.png  
 + extracting: /usr/share/betterawstats/icons/expand.gif  
 +  inflating: /usr/share/betterawstats/icons/external.png  
 +  inflating: /usr/share/betterawstats/icons/fulllist.png  
 + extracting: /usr/share/betterawstats/icons/fulllist_btn.png  
 + extracting: /usr/share/betterawstats/icons/help.png  
 + extracting: /usr/share/betterawstats/icons/index.html  
 +  inflating: /usr/share/betterawstats/icons/screen.png  
 +  inflating: /usr/share/betterawstats/icons/unknown.png  
 + extracting: /usr/share/betterawstats/icons/unknown_btn.png  
 +  inflating: /usr/share/betterawstats/icons/versions.png  
 + extracting: /usr/share/betterawstats/icons/versions_btn.png  
 +  inflating: /usr/share/betterawstats/icons/wmap.png  
 +   creating: /usr/share/betterawstats/includes/
 +  inflating: /usr/share/betterawstats/includes/bawstats.admin.inc  
 +  inflating: /usr/share/betterawstats/includes/bawstats.config.inc  
 +  inflating: /usr/share/betterawstats/includes/bawstats.css  
 +  inflating: /usr/share/betterawstats/includes/bawstats.stats.inc  
 + extracting: /usr/share/betterawstats/includes/index.html  
 +  inflating: /usr/share/betterawstats/index.php  
 +   creating: /usr/share/betterawstats/language/
 + extracting: /usr/share/betterawstats/language/index.html  
 +  inflating: /usr/share/betterawstats/language/lang_de.inc.php  
 +  inflating: /usr/share/betterawstats/language/lang_en.inc.php  
 +  inflating: /usr/share/betterawstats/language/lang_nl.inc.php  
 +   creating: /usr/share/betterawstats/modules/
 + extracting: /usr/share/betterawstats/modules/index.html  
 +  inflating: /usr/share/betterawstats/modules/render_htmlchart.inc.php  
 +  inflating: /usr/share/betterawstats/modules/render_htmlchart2.inc.php  
 +  inflating: /usr/share/betterawstats/modules/render_jpgraph.inc.php  
 +  inflating: /usr/share/betterawstats/modules/render_map.inc.php  
 +  inflating: /usr/share/betterawstats/modules/render_table.inc.php  
 +  inflating: /usr/share/betterawstats/scripts.js  
 +  inflating: /usr/share/betterawstats/style.css  
 +  inflating: /usr/share/betterawstats/vertical.css 
 +</code>
 +
 +
 +Für den Betrieb von **BetterAWStats** benötigen wir noch das Paket **php-gd** zur PHP Unterstützung der GD Gaphic Library, welches wir noch via **yum** installieren, sofern es nicht schon installiert wurde.
 +   yum install php-gd -y
 +
 +===== Konfiguration =====
 +==== Dokumentation ====
 +Detaillierte Hinweise zur Installation und Konfiguration von **BetterAWStats** findet man in der mitgelieferten Installations-Datei.
 +   # cat /usr/share/betterawstats/docs/install.txt 
 +<file txt /usr/share/betterawstats/docs/install.txt>REQUIREMENTS:
 +
 +- awstats and generated datafiles from awstats.
 +- PHP 5.2 or above
 +- a Webserver that can process PHP files (Apache, IIS etc)
 +- 1MB space
 +- A recent browser version that can properly render CSS, such as Opera 9, Firefox 2, IE 7 etc.
 +- 1024x786 screen or larger
 +
 +INSTALL PROCEDURE BETTERAWSTATS:
 +
 +1. Extract the files into any web-accessible directory, preserving the directory structure.
 +2. Edit the file config.php. Specially the paths to the awstats files have to be correct
 +3. Open index.php in your browser and you should see the results.
 +4. Under Linux, in order to use the online config editor, please make your config.php 
 +   file writable by apache:
 +    chown apache:apache ./config.php
 +    chmod 664 ./config.php
 +   and set $BAW_CONF['online_config'] to true.
 +   If your BetterAWStats installation is not protected by password, you have to make the 
 +   config.php file unwritable after you changed the settings and disable $BAW_CONF['online_config']
 +
 +IMPORTANT NOTES:
 +
 +It is STRONGLY recommended to password-protect the folder where BetterAWStats is installed
 +SPECIALLY when using the online config editor. You can use .htaccess files for example.
 +
 +DAILY USE:
 +
 +- update your statistics as usual with awstats
 +- Open BetterAwstats to see the statistics
 +
 +HOW TO ADD ADITIONAL EXTRA SECTIONS:
 +
 +Awstats allows to add aditional extra sections with custom stats. In order to create those,
 +1. Please edit the file /core/extras.inc.php. Take a look at section EXTRAS_1 and copy the whole function again into the file, changing the function to show the data desired.
 +2. Below that, please copy the $BAW_CONF_DIS_DEF section and edit the fariables according to point 1.
 +3. Copy the respective section also in config.php and adjust the values accordingly.
 +
 +</file>
 +==== Anwendung ====
 +Als erstes machen wir eine Sicherungskopie der mitgelieferten Konfigurationsdatei.
 +   # cp /usr/share/betterawstats/config.php /usr/share/betterawstats/config.php.default
 +
 +Als nächstes passen wir die Dateirechte der Konfigurationsdatei an.
 +   # chmod 640 /usr/share/betterawstats/config.php
 +
 +Anschließend schenken wir unserem Apache- oder NGiNX-Systemuser das Webrootverzeichnis.
 +   # chown apache.root /usr/share/betterawstats/ -R
 +bzw.
 +   # chown nginx.root /usr/share/betterawstats/ -R
 +
 +Nun bearbeiten wir die Konfigurationsdatei von **betterawstats** mit dem Editor unserer wahl, z.B. **vim**.
 +   # vim /usr/share/betterawstats/config.php
 +
 +<file php /usr/share/betterawstats/config.php><?php                                                                                                                                     
 +/**                                                                                                                                       
 + * betterawstats - an alternative display for awstats data                                                                                
 +                                                                                                                                        
 + * @author      Oliver Spiesshofer, support at betterawstats dot com                                                                      
 + * @copyright   2008 Oliver Spiesshofer                                                                                                   
 + * @version     1.0                                                                                                                       
 + * @link        http://betterawstats.com                                                                                                  
 +                                                                                                                                        
 + * Based on the GPL AWStats Totals script by:                                                                                             
 + * Jeroen de Jong <jeroen@telartis.nl>                                                                                                    
 + * copyright   2004-2006 Telartis                                                                                                         
 + * version 1.13 (http://www.telartis.nl/xcms/awstats)                                                                                     
 +                                                                                                                                        
 + * This program is free software; you can redistribute it and/or                                                                          
 + * modify it under the terms of the GNU General Public License                                                                            
 + * as published by the Free Software Foundation; either version 2                                                                         
 + * of the License, or (at your option) any later version.                                                                                 
 +                                                                                                                                        
 + * This program is distributed in the hope that it will be useful,                                                                        
 + * but WITHOUT ANY WARRANTY; without even the implied warranty of                                                                         
 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                                                          
 + * GNU General Public License for more details.                                                                                           
 +                                                                                                                                        
 + * You should have received a copy of the GNU General Public License                                                                      
 + * along with this program; if not, write to the Free Software                                                                            
 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.                                                            
 + */                                                                                                                                       
 +
 +// this file can't be used on its own - do not change these 3 lines
 +if (strpos ($_SERVER['PHP_SELF'], 'config.php') !== false) {       
 +    die ('This file can not be used on its own!');                 
 +}                                                                  
 +// ATTENTION: BetterAWstats has an online config editor that you can use
 +// instead of editing this file here. The link is on the bottom of the menu!
 +// To use it, set $BAW_CONF['online_config']= true; and make sure that the  
 +// file is writable by the server, AND protectthe BetterAWStats installation
 +// by a .htaccess file!                                                     
 +
 +//*********************************************************/
 +//*          SITE SETTINGS                                  
 +//*********************************************************/
 +
 +// NAME:    Script URL
 +// INFO:    The url of BetterAWstats' directory, No trailing slash
 +// Django : 2015-01-13                                            
 +// DEFAULT: 'http://awstats.local'                                
 +$BAW_CONF['site_url'] = 'https://betterawstats.nausch.org';       
 +
 +// NAME:    Script path
 +// INFO:    The path of BetterAWstats, No trailing slash
 +// Django : 2015-01-13                                  
 +// DEFAULT: '/path/to/betterawstats/'                   
 +$BAW_CONF['site_path'] = '/usr/share/betterawstats';    
 +
 +// NAME:    Path to AWStats Data
 +// INFO:    Set this value to the directory where AWStats saves its database
 +//          files into. ATTENTION: If you read those files on windows but have
 +//          them created on linux or the other way round, make sure you transfer
 +//          them 'BINARY'. Otherwise they cannot be read properly. No trailing  
 +//          slash                                                               
 +// Django : 2015-01-13                                                          
 +// DEFAULT: '/path/to/betterawstats/awstats/data'                               
 +$BAW_CONF['path_data'] = '/usr/share/awstats/wwwdata';                          
 +
 +// NAME:    Path to AWStats Libraries
 +// INFO:    Set this value to the directory where AWStats saves its library
 +//          files into. No trailing slash                                  
 +// Django : 2015-01-13                                                     
 +// DEFAULT: '/path/to/betterawstats/awstats/lib'                           
 +$BAW_CONF['path_lib'] = '/usr/share/awstats/lib';                          
 +
 +// NAME:    Path to AWStats Language files
 +// INFO:    Set this value to the directory where AWStats saves its language
 +//          files into. No trailing slash                                   
 +// Django : 2015-01-13                                                      
 +// DEFAULT: '/path/to/betterawstats/awstats/lang'                           
 +$BAW_CONF['path_lang'] = '/usr/share/awstats/lang';                         
 +
 +// NAME:    URL to AWStats Icons
 +// INFO:    The url to the awstats icons, should include the whole http://...,
 +//          no trailing slash.                                                
 +// Django : 2015-01-13                                                        
 +// DEFAULT: 'http://awstats.local/awstats/icon'                               
 +$BAW_CONF['icons_url'] = 'https://awstats.nausch.org/awstatsicons';           
 +
 +// NAME:    Web Configuration
 +// INFO:    Enable the online configuration editor? WARNING: Your config.php has
 +//          to be writable in order to enable this. This is a BAD idea to use   
 +//          unless the folder is password-protected with a .htaccess file or    
 +//          similar.                                                            
 +// DEFAULT: true                                                                
 +// POSSIBLE VALUES: true, false                                                 
 +$BAW_CONF['online_config'] = false;                                             
 +
 +// NAME:    Change configuration password?
 +// INFO:    This password is needed to access the online configuration. It has
 +//          to be longer than 5 letters.                                      
 +// Django : 2015-01-13                                                        
 +// DEFAULT: ''                                                                
 +$BAW_CONF['online_config_password'] = '14m7h3B357,fUcK7h3R357!';                     
 +
 +// NAME:    Limit to server?
 +// INFO:    Set this to a simgle server that you want to limit or "false" to
 +//          show all. The server name should be the one used for awstats.   
 +// DEFAULT: 'show_all'                                                      
 +// POSSIBLE VALUES: 'sitename.org', 'show_all'                              
 +$BAW_CONF['limit_server'] = 'show_all';                                     
 +
 +
 +
 +//*********************************************************/
 +//*          LAYOUT SETTINGS                                
 +//*********************************************************/
 +
 +// NAME:    Layout Type
 +// INFO:    Display page in vertical or horizontal layout?
 +// DEFAULT: 'vertical'                                    
 +// POSSIBLE VALUES: 'vertical', 'horizontal'              
 +$BAW_CONF['layout_type'] = 'vertical';                    
 +
 +// NAME:    Language
 +// INFO:    Set your language. Set to "auto" to autodetect from browser
 +// DEFAULT: 'auto'                                                     
 +// POSSIBLE VALUES: 'auto', 'al', 'ba', 'bg', 'ca', 'tw', 'cn', 'cz', 'dk', 'nl',
 +//                  'en', 'et', 'eu', 'fi', 'fr', 'gl', 'de', 'gr', 'he', 'hu',  
 +//                  'is', 'id', 'it', 'jp', 'kr', 'lv', 'nn', 'nb', 'pl', 'pt',  
 +//                  'br', 'ro', 'ru', 'sr', 'sk', 'es', 'se', 'tr', 'ua', 'wlk'  
 +// Django : 2015-01-13                                                           
 +$BAW_CONF['lang_setting'] = 'de';                                                
 +
 +// NAME:    Decimal Point
 +// INFO:    Decimal Point Character (99.9)
 +// DEFAULT: '.'                           
 +// Django : 2015-01-13                    
 +$BAW_CONF['dec_point'] = ',';             
 +
 +// NAME:    Thousands separator
 +// INFO:    Thousand Digit separator (1'000)
 +// DEFAULT: "'"                             
 +// Django : 2015-01-13                      
 +$BAW_CONF['tho_point'] = ".";               
 +
 +// NAME:    Date format (2007-31-12)
 +// INFO:    How should a date look like? For formatting, please consult
 +//          http://php.net/manual/en/function.date.php                 
 +// DEFAULT: 'Y-M-d'                                                    
 +// Django : 2015-01-13                                                 
 +$BAW_CONF['date_format'] = 'd-M-Y';                                    
 +
 +// NAME:    Date & Time format (2007-31-12 23:59)
 +// INFO:    How should a date & time look like? For formatting,please consult
 +//          http://php.net/manual/en/function.date.php                       
 +// DEFAULT: 'Y-M-d H:i'                                                      
 +// Django : 2015-01-13                                                       
 +$BAW_CONF['date_time_format'] = 'd-M-Y - H:i';                               
 +
 +// NAME:    Percentage decimals
 +// INFO:    How many decimals for percentage value? (99.9%)
 +// DEFAULT: '1'                                            
 +// Django : 2015-01-13                                     
 +$BAW_CONF['percent_decimals'] = '2';                       
 +
 +// NAME:    Hide Empty data
 +// INFO:    Completely hide graphs with zero entries? (The menu will also be
 +//          hidden)                                                         
 +// DEFAULT: true                                                            
 +// POSSIBLE VALUES: true, false                                             
 +$BAW_CONF['hideempty'] = true;                                              
 +
 +// NAME:    Submit dropdowns on change
 +// INFO:    If enabled, the site/date dropdowns do not have an "OK"-button. The
 +//          page is refreshed as soon as you choose a new value. Not recommended
 +//          for large sites.                                                    
 +// DEFAULT: true                                                                
 +// POSSIBLE VALUES: true, false                                                 
 +$BAW_CONF['auto_submit_form'] = true;                                           
 +
 +
 +
 +//*********************************************************/
 +//*          TABLE SETTINGS                                 
 +//*********************************************************/
 +
 +// NAME:    First day of the week
 +// INFO:    Should Sunday be the first day of the week or monday?
 +// DEFAULT: '1'                                                  
 +// POSSIBLE VALUES: '1', '2'                                     
 +// Django : 2015-01-13                                           
 +$BAW_CONF['firstdayofweek'] = '2';                               
 +
 +// NAME:    Field Length
 +// INFO:    What is the max. text length of table fields? (Applies only to
 +//          links)                                                        
 +// DEFAULT: '65'                                                          
 +$BAW_CONF['field_length'] = '50';                                         
 +
 +// NAME:    Max. Table Lines
 +// INFO:    What is the max. no. of lines a table can have? Set to "false" to
 +//          disable. If a table reaches this number of lines, The rest is    
 +//          summarized into one line. This also applies to the "full list" view
 +//          of a table                                                         
 +// DEFAULT: '10000'                                                            
 +$BAW_CONF['maxlines'] = '10000';                                               
 +
 +
 +
 +//*********************************************************/
 +//*          CHART SETTINGS                                 
 +//*********************************************************/
 +
 +// NAME:    Max scale for Visitors
 +// INFO:    The maximum value of the chosen option will define the maximum
 +//          height of the Visitors bars in the chart                      
 +// DEFAULT: 'layout_visits'                                               
 +// POSSIBLE VALUES: 'layout_visitos', 'layout_visits', 'layout_pages',    
 +//                  'layout_hits', 'layout_bytes'                         
 +$BAW_CONF['max_visitors'] = 'layout_visits';                              
 +
 +// NAME:    Max scale for Visits
 +// INFO:    The maximum value of the chosen option will define the maximum
 +//          height of the Visits bars in the chart                        
 +// DEFAULT: 'layout_visits'                                               
 +// POSSIBLE VALUES: 'layout_visits', 'layout_pages', 'layout_hits', 'layout_bytes'
 +$BAW_CONF['max_visits'] = 'layout_visits';                                        
 +
 +// NAME:    Max scale for Pages
 +// INFO:    The maximum value of the chosen option will define the maximum
 +//          height of the Pages bars in the chart                         
 +// DEFAULT: 'layout_pages'                                                
 +// POSSIBLE VALUES: 'layout_pages', 'layout_hits', 'layout_bytes'         
 +$BAW_CONF['max_pages'] = 'layout_pages';                                  
 +
 +// NAME:    Max scale for Hits
 +// INFO:    The maximum value of the chosen option will define the maximum
 +//          height of the Hits bars in the chart                          
 +// DEFAULT: 'layout_hits'                                                 
 +// POSSIBLE VALUES: 'layout_hits', 'layout_bytes'                         
 +$BAW_CONF['max_hits'] = 'layout_hits';                                    
 +
 +// NAME:    Max no of chart rows
 +// INFO:    When displaying the charts with the full lists, How many items can
 +//          there be displayed? The rest will sum up into "Others". This is done
 +//          to prevent too wide charts                                          
 +// DEFAULT: '50'                                                                
 +$BAW_CONF['max_chart_items'] = '30';                                            
 +
 +// NAME:    Chart Titles?
 +// INFO:    If enabled, it will show a title on top of each chart.
 +// DEFAULT: true                                                  
 +// POSSIBLE VALUES: true, false                                   
 +$BAW_CONF['chart_titles'] = false;                                
 +
 +
 +
 +//*********************************************************/
 +//*          JPGRAPH SETTINGS                               
 +//*********************************************************/
 +
 +// NAME:    Enable JPgraph?
 +// INFO:    To use JPGraph, you have to download it from
 +//          http://www.aditus.nu/jpgraph/jpdownload.php.
 +// DEFAULT: false                                       
 +// POSSIBLE VALUES: true, false                         
 +$BAW_CONF['use_jpgraph'] = false;                        
 +
 +// NAME:    Path to JPGraph
 +// INFO:    Where is your JPGraph installation? (The folder where jpgraph.php is
 +//          in. No trailing slash)                                              
 +$BAW_CONF['jpgraph_path'] = '/path/to/betterawstats/jpgraph/src';
 +
 +
 +
 +//*********************************************************/
 +//*          ADVANCED SETTINGS                              
 +//*********************************************************/
 +
 +// NAME:    XHTML/ HTML
 +// INFO:    Do you want output in HTML or XHTML?
 +// DEFAULT: true                                
 +// POSSIBLE VALUES: true, false                 
 +$BAW_CONF['xhtml'] = false;                     
 +
 +// NAME:    Debug
 +// INFO:    Do you want to show debug-output (VERY detailed)?
 +// DEFAULT: true                                             
 +// POSSIBLE VALUES: true, false                              
 +$BAW_CONF['debug'] = false;                                  
 +
 +// NAME:    Parser Stats
 +// INFO:    Do you want to show log file parsing data below the stats summary?
 +// DEFAULT: true                                                              
 +// POSSIBLE VALUES: true, false                                               
 +$BAW_CONF['show_parser_stats'] = true;                                        
 +
 +// NAME:    Module settings
 +// INFO:    Are you using BetterAWstats as a module for another software?
 +//          (Currently only Drupal is supported)                         
 +// DEFAULT: 'none'                                                       
 +// POSSIBLE VALUES: 'none', 'drupal'                                     
 +$BAW_CONF['module'] = 'none';                                            
 +
 +
 +
 +//*********************************************************/
 +//*          DISPLAY                                        
 +//*********************************************************/
 +
 +// NAME:    Summary
 +// INFO:    General Overview of key figures and dates
 +$BAW_CONF_DIS['overview'] = array(                   
 +    'show' => true,    // Show this Data?            
 +    'collapse' => false,    // Collapsed?            
 +    'order' => '1',    // Item Sequence              
 +);                                                   
 +
 +// NAME:    Monthly history
 +// INFO:    Monthly data   
 +$BAW_CONF_DIS['months'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '2',    // Item Sequence  
 +    'top_x' => '24',    // Show how many entries?
 +    'avg' => true,    // Show averages?          
 +    'total' => true,    // Show total Sum?       
 +    'chart' => true,    // Show HTML chart?      
 +    'table' => true,    // Show data table?      
 +);                                               
 +
 +// NAME:    Days of month
 +// INFO:    Daily data   
 +$BAW_CONF_DIS['days'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '3',    // Item Sequence  
 +    'avg' => true,    // Show averages?  
 +    'total' => true,    // Show total Sum?
 +    'chart' => true,    // Show HTML chart?
 +    'table' => true,    // Show data table?
 +);                                         
 +
 +// NAME:    Days of week (Averages)
 +// INFO:    Weekdays               
 +$BAW_CONF_DIS['weekdays'] = array( 
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '4',    // Item Sequence  
 +    'avg' => true,    // Show averages?  
 +    'total' => false,    // Show total Sum?
 +    'chart' => true,    // Show HTML chart?
 +    'table' => true,    // Show data table?
 +);                                         
 +
 +// NAME:    Hours (Averages)
 +// INFO:    Hours of the day
 +$BAW_CONF_DIS['hours'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '5',    // Item Sequence  
 +    'avg' => true,    // Show averages?  
 +    'total' => false,    // Show total Sum?
 +    'chart' => true,    // Show HTML chart?
 +    'table' => true,    // Show data table?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '1'=Hours, '2'=Pages, '3'=Hits, '4'=Bandwidth                 
 +    'sort_dir' => SORT_ASC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                       
 +);                                                                    
 +
 +// NAME:    Visitors domains/countries
 +// INFO:    Domains of visitors       
 +$BAW_CONF_DIS['domains'] = array(     
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '6',    // Item Sequence  
 +    'avg' => false,    // Show averages? 
 +    'total' => false,    // Show total Sum?
 +    'chart' => true,    // Show HTML chart?
 +    'table' => true,    // Show data table?
 +    'map' => true,    // Show Map Image?   
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '0',    // Sort for which column?  Possible values are:
 +    // 'key'=Visitors domains/countries, '0'=Pages, '1'=Hits, '2'=Bandwidth
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:    
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                            
 +);                                                                         
 +
 +// NAME:    Hosts
 +// INFO:    IP addresses of visitors
 +$BAW_CONF_DIS['visitors'] = array(  
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '7',    // Item Sequence  
 +    'avg' => true,    // Show averages?  
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Hosts, '1'=Pages, '2'=Hits, '3'=Bandwidth, '4'=Ratio(Hits/Pages),
 +    // '5'=Last visit                                                       
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:     
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                             
 +    'assumebot' => '1',    // Hits/pages minimum ratio to assume normal user?
 +);                                                                           
 +
 +// NAME:    Authenticated users
 +// INFO:    Logins for username/password protected pages
 +$BAW_CONF_DIS['logins'] = array(                        
 +    'show' => true,    // Show this Data?               
 +    'collapse' => false,    // Collapsed?               
 +    'order' => '8',    // Item Sequence                 
 +    'avg' => false,    // Show averages?                
 +    'total' => false,    // Show total Sum?             
 +    'table' => true,    // Show data table?             
 +    'top_x' => '5',    // Show how many entries?        
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // 'key'=Authenticated users, '0'=Pages, '1'=Hits, '2'=Bandwidth, '3'=Last
 +    // visit                                                                  
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:       
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                               
 +);                                                                            
 +
 +// NAME:    Robots/Spiders visitors
 +// INFO:    Spiders, Robots of Search engines etc.
 +$BAW_CONF_DIS['robots'] = array(                  
 +    'show' => true,    // Show this Data?         
 +    'collapse' => false,    // Collapsed?         
 +    'order' => '9',    // Item Sequence           
 +    'avg' => true,    // Show averages?           
 +    'total' => true,    // Show total Sum?        
 +    'table' => true,    // Show data table?       
 +    'top_x' => '10',    // Show how many entries? 
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Robots/Spiders visitors, '1'=Hits, '2'=Hits (robots.txt), 
 +    // '3'=Bandwidth, '4'=Last visit                                 
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Worms
 +// INFO:    Worms searching for security holes
 +$BAW_CONF_DIS['worms'] = array(               
 +    'show' => true,    // Show this Data?     
 +    'collapse' => false,    // Collapsed?     
 +    'order' => '10',    // Item Sequence      
 +    'avg' => false,    // Show averages?      
 +    'total' => true,    // Show total Sum?    
 +    'table' => true,    // Show data table?   
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '2',    // Sort for which column?  Possible values are:
 +    // '0'=Worms, '1'=Sensitive targets, '2'=Hits, '3'=Bandwidth, '4'=Last visit
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:         
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                                 
 +);                                                                              
 +
 +// NAME:    Visits duration
 +// INFO:    How long have people been on the site?
 +$BAW_CONF_DIS['sessions'] = array(                
 +    'show' => true,    // Show this Data?         
 +    'collapse' => false,    // Collapsed?         
 +    'order' => '11',    // Item Sequence          
 +    'avg' => false,    // Show averages?          
 +    'total' => false,    // Show total Sum?       
 +    'table' => true,    // Show data table?       
 +);                                                
 +
 +// NAME:    File type
 +// INFO:    What filetypes are on the site
 +$BAW_CONF_DIS['filetype'] = array(        
 +    'show' => true,    // Show this Data? 
 +    'collapse' => false,    // Collapsed? 
 +    'order' => '12',    // Item Sequence  
 +    'avg' => false,    // Show averages?  
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'chart' => true,    // Show HTML chart?      
 +    'sort' => '0',    // Sort for which column?  Possible values are:
 +    // 'key'=File type, '0'=Hits, '1'=Bandwidth, '2'=Compression on, 
 +    // '3'=Compression result                                        
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Pages-URL
 +// INFO:    Pages on the site
 +$BAW_CONF_DIS['urls'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '13',    // Item Sequence 
 +    'avg' => true,    // Show averages?  
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Pages-URL, '1'=Viewed, '2'=Average size, '3'=Entry, '4'=Exit
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Files/paths
 +// INFO:    Files/paths on the site
 +$BAW_CONF_DIS['paths'] = array(    
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '14',    // Item Sequence 
 +    'avg' => true,    // Show averages?  
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Files/paths, '1'=Viewed                                   
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Operating Systems
 +// INFO:    Operating system of users
 +$BAW_CONF_DIS['os'] = array(         
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '15',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => false,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'chart' => true,    // Show HTML chart?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '2',    // Sort for which column?  Possible values are:
 +    // '1'=Operating Systems, '2'=Hits                               
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Unknown OS (useragent field)
 +// INFO:    Unknown Operating system    
 +$BAW_CONF_DIS['unknownos'] = array(     
 +    'show' => false,    // Show this Data?
 +    'collapse' => false,    // Collapsed? 
 +    'order' => '17',    // Item Sequence  
 +    'avg' => false,    // Show averages?  
 +    'total' => false,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '1'=User Agent, '2'=Last visit                                
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Operating Systems (+Versions)
 +// INFO:    Operating system of users including versions
 +$BAW_CONF_DIS['osversions'] = array(                    
 +    'show' => false,    // Show this Data?              
 +    'collapse' => false,    // Collapsed?               
 +    'order' => '16',    // Item Sequence                
 +    'avg' => false,    // Show averages?                
 +    'total' => false,    // Show total Sum?             
 +    'table' => true,    // Show data table?             
 +    'chart' => true,    // Show HTML chart?             
 +    'top_x' => '10',    // Show how many entries?       
 +    'sort' => '2',    // Sort for which column?  Possible values are:
 +    // '1'=Operating Systems, '2'=Hits                               
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Browsers
 +// INFO:    User Browser Type
 +$BAW_CONF_DIS['browsers'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '18',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => false,    // Show total Sum?
 +    'chart' => true,    // Show HTML chart?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '3',    // Sort for which column?  Possible values are:
 +    // '1'=Browsers, '2'=Grabber, '3'=Hits                           
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Browsers (+Versions)
 +// INFO:    User Browser Type (+Versions)
 +$BAW_CONF_DIS['browserversions'] = array(
 +    'show' => false,    // Show this Data?
 +    'collapse' => false,    // Collapsed? 
 +    'order' => '19',    // Item Sequence  
 +    'avg' => false,    // Show averages?  
 +    'total' => false,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'chart' => false,    // Show HTML chart?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '4',    // Sort for which column?  Possible values are:
 +    // '2'=Browsers, '3'=Grabber, '4'=Hits                           
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Unknown browsers (useragent field)
 +// INFO:    Unknown Browsers                  
 +$BAW_CONF_DIS['unknownbrowser'] = array(      
 +    'show' => false,    // Show this Data?    
 +    'collapse' => false,    // Collapsed?     
 +    'order' => '20',    // Item Sequence      
 +    'avg' => false,    // Show averages?      
 +    'total' => false,    // Show total Sum?   
 +    'table' => true,    // Show data table?   
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '1'=User Agent, '2'=Last visit                                
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Screen sizes
 +// INFO:    Screensizes of users
 +$BAW_CONF_DIS['screensizes'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '21',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => false,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'chart' => true,    // Show HTML chart?
 +    'top_x' => '5',    // Show how many entries?
 +    'sort' => '2',    // Sort for which column?  Possible values are:
 +    // '1'=Screen sizes, '2'=Hits                                    
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Referring search engines
 +// INFO:    Referrals from search engines
 +$BAW_CONF_DIS['se_referers'] = array(    
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '22',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Referring search engines, '1'=Pages, '2'=Hits             
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +    // Django : 2015-01-13                                             
 +    // default: true                                                   
 +    'favicon' => false,    // Retrieve favicons for external URLs?     
 +);                                                                     
 +
 +// NAME:    Referring sites
 +// INFO:    Referrals from other sites
 +$BAW_CONF_DIS['referers'] = array(    
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '23',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Referring sites, '1'=Pages, '2'=Hits                      
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +    'favicon' => false,    // Retrieve favicons for external URLs?     
 +);                                                                     
 +
 +// NAME:    Referring sites by Domains
 +// INFO:    Referrals from other sites, grouped by 2-nd level domains
 +$BAW_CONF_DIS['referer_domains'] = array(                            
 +    'show' => true,    // Show this Data?                            
 +    'collapse' => false,    // Collapsed?                            
 +    'order' => '24',    // Item Sequence                             
 +    'avg' => false,    // Show averages?                             
 +    'total' => true,    // Show total Sum?                           
 +    'table' => true,    // Show data table?                          
 +    'top_x' => '10',    // Show how many entries?                    
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Referring sites, '1'=Pages, '2'=Hits                      
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +    'favicon' => false,    // Retrieve favicons for external URLs?     
 +    'domain_lvls' => '3',    // Shorten URL to how many domain levels? (-1 to disable)
 +);                                                                                    
 +
 +// NAME:    Hotlinks
 +// INFO:    Pages linking to images/data on your site
 +$BAW_CONF_DIS['hotlinks'] = array(                   
 +    'show' => true,    // Show this Data?            
 +    'collapse' => false,    // Collapsed?            
 +    'order' => '25',    // Item Sequence             
 +    'avg' => false,    // Show averages?             
 +    'total' => true,    // Show total Sum?           
 +    'table' => true,    // Show data table?          
 +    'top_x' => '10',    // Show how many entries?    
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Referring sites, '1'=Hits                                 
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +    'favicon' => false,    // Retrieve favicons for external URLs?     
 +);                                                                     
 +
 +// NAME:    Hotlinks by Domains
 +// INFO:    Domains linking to images/data on your site
 +$BAW_CONF_DIS['hotlink_domains'] = array(              
 +    'show' => true,    // Show this Data?              
 +    'collapse' => false,    // Collapsed?              
 +    'order' => '26',    // Item Sequence               
 +    'avg' => false,    // Show averages?               
 +    'total' => true,    // Show total Sum?             
 +    'table' => true,    // Show data table?            
 +    'top_x' => '10',    // Show how many entries?      
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Referring sites, '1'=Hits                                 
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +    'favicon' => false,    // Retrieve favicons for external URLs?     
 +    'domain_lvls' => '3',    // Shorten URL to how many domain levels? (-1 to disable)
 +);                                                                                    
 +
 +// NAME:    Search�Keyphrases
 +// INFO:    Search phrases   
 +$BAW_CONF_DIS['searchphrases'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '27',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=different keyphrases, '1'=Hits                            
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Search�Keywords
 +// INFO:    Search words   
 +$BAW_CONF_DIS['searchwords'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '28',    // Item Sequence 
 +    'avg' => false,    // Show averages? 
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=different keywords, '1'=Hits                              
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending                        
 +);                                                                     
 +
 +// NAME:    Miscellaneous
 +// INFO:    User system features
 +$BAW_CONF_DIS['misc'] = array(  
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '29',    // Item Sequence
 +    'table' => true,    // Show data table?
 +);
 +
 +// NAME:    HTTP Status codes
 +// INFO:    Acesses to pages that returned errors
 +$BAW_CONF_DIS['errors'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '30',    // Item Sequence
 +    'total' => true,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '2',    // Sort for which column?  Possible values are:
 +    // '0'=HTTP Status codes, '2'=Hits, '3'=Average size
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending
 +);
 +
 +// NAME:    Error�Hits
 +// INFO:    Required but not found URLs (HTTP code 404)
 +$BAW_CONF_DIS['errors404'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '31',    // Item Sequence
 +    'table' => true,    // Show data table?
 +    'total' => true,    // Show total Sum?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Error�Hits, '1'=Hits, '2'=Hits
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending
 +);
 +
 +// NAME:    Color depth
 +// INFO:    Screen colors of users
 +$BAW_CONF_DIS['extra_1'] = array(
 +    'show' => true,    // Show this Data?
 +    'collapse' => false,    // Collapsed?
 +    'order' => '32',    // Item Sequence
 +    'total' => false,    // Show total Sum?
 +    'table' => true,    // Show data table?
 +    'top_x' => '10',    // Show how many entries?
 +    'sort' => '1',    // Sort for which column?  Possible values are:
 +    // '0'=Color depth in bits, '1'=Hits
 +    'sort_dir' => SORT_DESC,    // Sort direction? Possible values are:
 +    // SORT_ASC=Ascending, SORT_DESC=Descending
 +);
 +
 +
 +?>
 +</file>
 +
 +==== Apache vHosts ====
 +Für den Zugriff auf unsere Webserver-Statistiken legen wir uns einen virtuellen Host an. Die entsprechende Konfigurationsdatei **vhosts.conf** haben wir im Verzeichnis **/etc/httpd/conf.d** angelegt.
 +Mit dem Editor unserer Wahl ergänzen wir nun unsere virtuelen Hosts um einen weiteren:
 +   # vim /etc/httpd/conf.d/vhosts.conf
 +
 +<file apache /etc/httpd/conf.d/vhosts.conf>#
 +# betterawstats.nausch.org
 +#
 +<VirtualHost *:80>
 +        ServerAdmin webmaster@nausch.org
 +        ServerName betterawstats.nausch.org
 +        ServerAlias www.betterawstats.nausch.org
 +        ServerPath /
 +        DocumentRoot "/usr/share/betterawstats"
 +
 +        <Directory "/usr/share/betterawstats">
 +                AllowOverride None
 + #Options +ExecCGI
 +  #DirectoryIndex awstats.pl
 +  Order deny,allow
 + Deny from all
 + Allow from 127.0.0.1
 +                Allow from 10.0.0.0/24
 +                Allow from 10.0.10.0/26
 +        </Directory>
 +
 +        Alias /awstatsclasses "/var/www/awstats/classes/"
 +        Alias /awstatscss "/var/www/awstats/css/"
 +        Alias /awstatsicons "/var/www/awstats/icon/"
 +        ScriptAlias /awstats/ "/var/www/awstats/cgi-bin/"  
 +
 + ErrorLog logs/betterawstats_error.log
 + CustomLog logs/betterawstats_access.log combined
 +</VirtualHost>
 +</file>
 +
 +Haben wir die Konfigurationsdatei vervollständigt, prüfen wir diese noch auf syntaktische Fehler.
 +   # apachectl -t
 +
 +   Syntax OK
 +
 +Ein reload unseres Apache Webserver reicht nun aus, um den neunen vHOST verfügbar zu haben.
 +   # systemctl reload httpd
 +
 +==== NGiNX vHost ====
 +Wie auch schon bei der Installation und Konfiguration von [[centos:web_c7:webstats#nginx_vhost|AWstats]] ist die Konfiguration unseres **[[http://nginx.org/|NGiNX]]** Webservers nicht sonderlich schwer.
 +
 +Im Konfigurationsverzeichnis //**/etc/nginx/conf.d**// legen wir uns für unseren vHOST eine passende Konfigurationsdatei an.
 +   # vim /etc/nginx/conf.d/betterawstats.conf
 +
 +<file httpd /etc/nginx/conf.d/betterawstats.conf>server {
 +        listen          80;
 +        server_name     betterawstats.nausch.org;
 +        access_log      /var/log/nginx/betterawstats_access.log;
 +        error_log       /var/log/nginx/betterawstats_errors.log;
 +
 +        root /usr/share/betterawstats/;
 +        index index.php index.html;
 +
 +       location ~ \.php {
 +                fastcgi_split_path_info ^(.+\.php)(/.+)$;
 +                fastcgi_index index.php;
 +                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 +                include fastcgi_params;
 +        }
 +
 +        location ~* ^/(.+\.(gif|jp?eg|png|css|js|cgi|pl|ico|swf|flv|s?html|php|xap|py|xml|txt))$ {
 +                expires 1y;
 +                root /usr/share/betterawstats;
 +                allow all;
 +        }
 +
 +        location ~ icons {
 +                allow all;
 +        }
 +}
 +</file>
 +
 +Die Konfigurationsdatei für **php-fpm**, unseren PHP-Parser hat folgenden Inhalt.
 +   # vim /etc/nginx/fastcgi_params
 +<file httpd /etc/nginx/fastcgi_params>
 +fastcgi_param  QUERY_STRING       $query_string;
 +fastcgi_param  REQUEST_METHOD     $request_method;
 +fastcgi_param  CONTENT_TYPE       $content_type;
 +fastcgi_param  CONTENT_LENGTH     $content_length;
 +
 +fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
 +fastcgi_param  REQUEST_URI        $request_uri;
 +fastcgi_param  DOCUMENT_URI       $document_uri;
 +fastcgi_param  DOCUMENT_ROOT      $document_root;
 +fastcgi_param  SERVER_PROTOCOL    $server_protocol;
 +fastcgi_param  HTTPS              $https if_not_empty;
 +
 +fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
 +fastcgi_param  SERVER_SOFTWARE    nginx;
 +
 +fastcgi_param  REMOTE_ADDR        $remote_addr;
 +fastcgi_param  REMOTE_PORT        $remote_port;
 +fastcgi_param  SERVER_ADDR        $server_addr;
 +fastcgi_param  SERVER_PORT        $server_port;
 +fastcgi_param  SERVER_NAME        $server_name;
 +
 +fastcgi_param X_SCRIPT_NAME       $fastcgi_script_name;
 +
 +# PHP only, required if PHP was built with --enable-force-cgi-redirect
 +fastcgi_param  REDIRECT_STATUS    200;
 +
 +# Vhosts fastcgi config
 +fastcgi_pass   127.0.0.1:9000;
 +</file>
 +
 +===== erstes Ergebnis =====
 +Nach erfolgreicher Konfiguration steht dem ersten Aufruf nichts mehr im Wege. Der Aufruf erfolgt bei dem hier gezeigtem Konfigurationsbeispiel über folgende URL:
 +
 +   $ firefox http://betterawstats.nausch.org
 +
 +{{ :centos:betterawstats_00.png?nolink&600 |Bild: Bildschirmhardcopy von BetterAWStats}}
 +
 +==== Optimierung mit JpGraph ====
 +Mit Hilfe der objektorientiereten Graphikbibliothek [[http://jpgraph.net/|JpGraph]], die speziell für PHP entwickelt wurde, optimieren wir nun noch unsere BetterAWStatsinstallation.
 +
 +Hierzu laden wir uns von der [[http://jpgraph.net/download/|Downloadseite des Projekts]] die [[http://jpgraph.net/download/download.php?p=5|aktuelle Version 3.x]] auf unseren Server. Anschließend entpacken wir das Archiv direkt in unserem lokalen BetterAWStats-Installationsverzeichnis.
 +   # tar xzfv jpgraph-3.5.0b1.tar.gz -C /usr/share/betterawstats/
 +
 +Bevor wir uns nun an die Anpassung unserer Konfiguration machen, passen wir kurz noch die Verzeichnis und Dateirechte an.
 +   # chown apache.apache /usr/share/betterawstats/jpgraph-3.5.0b1/ -R
 +
 +Abschließend ergänzen wir noch die Konfigurationsdatei von BetterAWStats.
 +   # vim /usr/share/betterawstats/config.php
 +
 +<code php>...
 +
 +//*********************************************************/
 +//*          JPGRAPH SETTINGS
 +//*********************************************************/
 +
 +// NAME:    Enable JPgraph?
 +// INFO:    To use JPGraph, you have to download it from
 +//          http://www.aditus.nu/jpgraph/jpdownload.php.
 +// DEFAULT: true
 +// POSSIBLE VALUES: true, false
 +// Django : 2013-12-29
 +// default: 
 +//$BAW_CONF['use_jpgraph'] = false;
 +$BAW_CONF['use_jpgraph'] = true;
 +
 +// NAME:    Path to JPGraph
 +// INFO:    Where is your JPGraph installation? (The folder where jpgraph.php is
 +//          in. No trailing slash)
 +// DEFAULT: '/path/to/betterawstats/jpgraph/src'
 +// Django : 2013-12-29
 +// default: $BAW_CONF['jpgraph_path'] = '/path/to/betterawstats/jpgraph/src';
 +$BAW_CONF['jpgraph_path'] = '/usr/share/betterawstats/jpgraph-3.5.0b1/src';
 +
 +...
 +</code>
 +
 +===== Website Analytics mit Piwik =====
 +
 +Einen ganz anderen Ansatz, nämlich nicht das Auswerten der Serverlogs, sondern das Sammeln von Informationen über den Client, geht [[http://piwik.org|Piwik]]. Ähnlich wie bei **Google Analytics** werden Informationen zum Besuch unserer Seiten gewonnen. Diese Daten werden jedoch nicht an Dritte, in dem Falle Google, weitergegeben - die ev. dann sonst was damit veranstalten - sondern auf unserem eigenen Server abgespeichert.
 +
 +Eine ausführliche (Installations-)Beschreibung zu **Piwik** findet man [[centos:piwik|hier]].
 +
 +====== Links ======
 +  * **[[centos:web_c7:start| ⇐ Zurück zu Kapitel "Webserverinstallation unter CentOS 7.x"]]**
 +  * **[[wiki:start|Zurück zu Projekte und Themenkapitel]]**
 +  * **[[http://dokuwiki.nausch.org/doku.php/|Zurück zur Startseite]]**
 +
 +
 +~~AUTOTWEET:~~
 +~~DISCUSSION~~
  
  • centos/web_c7/webstats.txt
  • Zuletzt geändert: 22.07.2019 14:59.
  • von 127.0.0.1