Vorbereitung - Installation 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