Base Web Installation Linux: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 2: Zeile 2:
 
*apt-get install apache2
 
*apt-get install apache2
  
=Vorbereitung - Installation apache2, PHP 5=
+
=Vorbereitung - Installation PHP 5=
 
*add-apt-repository ppa:ondrej/php (ab U16 notwendig)
 
*add-apt-repository ppa:ondrej/php (ab U16 notwendig)
 
*apt-get update
 
*apt-get update
Zeile 26: Zeile 26:
 
*vi /var/www/html/base/base_conf.php
 
*vi /var/www/html/base/base_conf.php
 
<pre>
 
<pre>
*
+
$BASE_urlpath = '/base';                # line 50
 +
$DBlib_path = '/var/adodb/';            #line 80
 +
$alert_dbname  = 'snort';              # line 102
 +
$alert_host    = 'localhost';
 +
$alert_port    = '';
 +
$alert_user    = 'snort';
 +
$alert_password = 'snort';              # line 106
 +
...
 +
//$graph_font_name = "Verdana";
 +
//$graph_font_name = "DejaVuSans";      # line 457
 +
//$graph_font_name = "Image_Graph_Font";
 +
$graph_font_name = "";                  # line 459
 
</pre>
 
</pre>
 +
=Rechte setzen und Restart apache=
 +
*chown -R www-data:www-data /var/www/html/base
 +
*chmod o-r /var/www/html/base/base_conf.php
 +
*service apache2 restart
 +
=Abschliessende Konfiguration=
 +
*http://servername/base/index.php -> Setup Page
 +
*Anklicken von: Create BASE AG
 +
*Anklicken: Main Page

Aktuelle Version vom 16. Oktober 2018, 12:34 Uhr

Vorbereitung - Installation apache2

  • apt-get install apache2

Vorbereitung - Installation PHP 5

  • add-apt-repository ppa:ondrej/php (ab U16 notwendig)
  • apt-get update
  • apt-get install -y apache2 libapache2-mod-php5.6 php5.6-mysql php5.6-cli php5.6 php5.6-common php5.6-gd php5.6-cli php-pear php5.6-xml
  • pear install -f --alldeps Image_Graph

Vorbereitung - Installation ADODB

Download und Installation

Konfigurationsdatei erstellen

  • cd /var/www/html/base
  • cp base_conf.php.dist base_conf.php

Konfiguration bearbeiten

  • vi /var/www/html/base/base_conf.php
$BASE_urlpath = '/base';                # line 50
$DBlib_path = '/var/adodb/';            #line 80
$alert_dbname   = 'snort';              # line 102
$alert_host     = 'localhost';
$alert_port     = '';
$alert_user     = 'snort';
$alert_password = 'snort';              # line 106
...
//$graph_font_name = "Verdana";
//$graph_font_name = "DejaVuSans";      # line 457
//$graph_font_name = "Image_Graph_Font";
$graph_font_name = "";                  # line 459

Rechte setzen und Restart apache

  • chown -R www-data:www-data /var/www/html/base
  • chmod o-r /var/www/html/base/base_conf.php
  • service apache2 restart

Abschliessende Konfiguration