Base Web Installation Linux: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Vorbereitung= ==PHP 5== *add-apt-repository ppa:ondrej/php *apt-get updateapt-get install -y apache2 libapache2-mod-php5.6 php5.6-mysql php5.6-cli php5.6 php5…“)
 
 
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=Vorbereitung=
+
=Vorbereitung - Installation apache2=
==PHP 5==
+
*apt-get install apache2
*add-apt-repository ppa:ondrej/php
+
 
*apt-get updateapt-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
+
=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=
 +
*wget https://sourceforge.net/projects/adodb/files/adodb-php5-only/adodb-520-for-php5/adodb-5.20.8.tar.gz
 +
*tar -xvzf adodb-5.20.8.tar.gz
 +
*mv adodb5 /var/adodb
 +
*chmod -R 755 /var/adodb
 +
 
 +
=Download und Installation=
 +
*wget http://sourceforge.net/projects/secureideas/files/BASE/base-1.4.5/base-1.4.5.tar.gz
 +
*tar xzvf base-1.4.5.tar.gz
 +
*mv base-1.4.5 /var/www/html/base/
 +
 
 +
=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
 +
<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>
 +
=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