Debian 10: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Install MariaDB= apt-get -y install mariadb-server = Install voipmonitor sensor and GUI= ==Installation of packages needed by voipmonitor's GUI== apt-get -y install php ph...") |
No edit summary |
||
Line 2: | Line 2: | ||
apt-get -y install mariadb-server | apt-get -y install mariadb-server | ||
= Install voipmonitor sensor | = Install voipmonitor sensor= | ||
==Installing sensor - voipmonitor service== | |||
mkdir /usr/src/voipmonitor | |||
cd /usr/src/voipmonitor | |||
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O x.tar.gz | |||
tar xzf x.tar.gz | |||
cd voipmonitor-* | |||
./install-script.sh | |||
= Install voipmonitor GUI= | |||
==Installation of packages needed by voipmonitor's GUI== | ==Installation of packages needed by voipmonitor's GUI== | ||
apt-get -y install php php-gd php-mysql php-cli libapache2-mod-php php-mbstring php-zip tshark mtr librsvg2-bin gsfonts rrdtool | apt-get -y install php php-gd php-mysql php-cli libapache2-mod-php php-mbstring php-zip tshark mtr librsvg2-bin gsfonts rrdtool | ||
Line 10: | Line 20: | ||
==create database needed for voipmonitor== | ==create database needed for voipmonitor== | ||
mysqladmin create voipmonitor | mysqladmin create voipmonitor | ||
==Installing IOncube - php loader / decryptor== | ==Installing IOncube - php loader / decryptor== |
Revision as of 12:46, 30 July 2019
Install MariaDB
apt-get -y install mariadb-server
Install voipmonitor sensor
Installing sensor - voipmonitor service
mkdir /usr/src/voipmonitor cd /usr/src/voipmonitor wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O x.tar.gz tar xzf x.tar.gz cd voipmonitor-* ./install-script.sh
Install voipmonitor GUI
Installation of packages needed by voipmonitor's GUI
apt-get -y install php php-gd php-mysql php-cli libapache2-mod-php php-mbstring php-zip tshark mtr librsvg2-bin gsfonts rrdtool
(When asked if non-superuser can capture traffic You can answer No)
create database needed for voipmonitor
mysqladmin create voipmonitor
Installing IOncube - php loader / decryptor
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.3.so -O /usr/lib/php/20180731/ioncube_loader_lin_7.3.so echo "zend_extension = /usr/lib/php/20180731/ioncube_loader_lin_7.3.so" > /etc/php/7.3/mods-available/ioncube.ini ln -s /etc/php/7.3/mods-available/ioncube.ini /etc/php/7.3/apache2/conf.d/01-ioncube.ini ln -s /etc/php/7.3/mods-available/ioncube.ini /etc/php/7.3/cli/conf.d/01-ioncube.ini
Installing voipmonitor GUI
cd /var/www/html rm -f index.html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=73&festry" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./
Finalizing steps
For working alerts / reports, system needs to run periodicaly script using scheduller
echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab kill -HUP `pgrep cron`
Create spooldir for sensor
mkdir /var/spool/voipmonitor/
Set privileges for apache
chown www-data /var/spool/voipmonitor/ chown -R www-data /var/www/html /etc/init.d/apache2 restart
Edit sensor settings and start sensor - edit /etc/voipmonitor.conf and set appropriate mysql password,save* options and interface option (interface names gets changed in deb9/deb10)
/etc/init.d/voipmonitor start
Enable service start via sysV with:
systemctl enable voipmonitor