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 [20.01.2015 16:54. ] – [NGiNX vHost] djangocentos:web_c7:webstats [20.01.2015 17:18. ] django
Zeile 1: Zeile 1:
-<WRAP center round alert 60%> 
-Artikel aktuell in Bearbeitung ... 
-</WRAP> 
- 
 ====== Logfileanalyse und -Auswertung mit (Better-)AWStats unter CentOS 7.x ====== ====== 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 3251: Zeile 3247:
 // DEFAULT: false                                        // DEFAULT: false                                       
 // POSSIBLE VALUES: true, false                          // POSSIBLE VALUES: true, false                         
-// Django : 2015-01-13                                   +$BAW_CONF['use_jpgraph'] = false;                        
-$BAW_CONF['use_jpgraph'] = true;                        +
  
 // NAME:    Path to JPGraph // NAME:    Path to JPGraph
 // INFO:    Where is your JPGraph installation? (The folder where jpgraph.php is // INFO:    Where is your JPGraph installation? (The folder where jpgraph.php is
 //          in. No trailing slash)                                               //          in. No trailing slash)                                              
-// Django : 2015-01-13                                                           +$BAW_CONF['jpgraph_path'] = '/path/to/betterawstats/jpgraph/src';
-// DEFAULT: '/path/to/betterawstats/jpgraph/src'                                 +
-$BAW_CONF['jpgraph_path'] = '/usr/share/betterawstats/modules/jpgraph-3.5.0b1/src';+
  
  
Zeile 3837: Zeile 3830:
 </VirtualHost> </VirtualHost>
 </file> </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 ==== ==== NGiNX vHost ====
Zeile 3905: Zeile 3906:
 </file> </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