VoIPMonitor Installation [Debian 11] - Omid-Mohajerani/VoIP-Monitoring GitHub Wiki
1 - MariaDB installation
Step 1: System Upgrade
sudo apt update
sudo apt upgrade
sudo reboot
Step 2: MariaDB Installation
apt-get -y install mariadb-server mariadb-client
Step 3: change auth method for root@localhost user from unix_socket to mysql_native_password type with no password
mysql
MariaDB> ALTER USER root@localhost IDENTIFIED VIA mysql_native_password;
MariaDB> SET PASSWORD = PASSWORD("");
MariaDB> FLUSH PRIVILEGES;
2 - MariaDB Configuration
in /etc/mysql/mariadb.conf.d/50-server.cnf edit [mysqld] section and add options
vim /etc/mysql/mariadb.conf.d/50-server.cnf
innodb_flush_log_at_trx_commit = 2
innodb_file_format = barracuda
innodb_buffer_pool_size = 8GB
#starting from mariadb 10.6 is necesasry to disable read-only for compressed tables
innodb_read_only_compressed=OFF
Restart mariadb service
service mariadb restart
Step 8: create the database needed for voipmonitor
mysqladmin create voipmonitor
3 - VoIP Monitor Sensor Installation
apt-get install rrdtool
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
set in /etc/voipmonitor.conf at least interface option it can be like interface=ens33
4 - Install voipmonitor GUI
Installation of packages needed by voipmonitor's GUI
apt-get install php php-gd php-mysql php-cli libapache2-mod-php php7.4-mbstring php-zip tshark mtr librsvg2-bin gsfonts rrdtool libtiff-tools
(When asked if non-superuser can capture traffic You can answer No)
Installing IOncube - php loader / decryptor
wget --no-continue http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.4.so -O /usr/lib/php/20190902/ioncube_loader_lin_7.4.so
echo "zend_extension = /usr/lib/php/20190902/ioncube_loader_lin_7.4.so" > /etc/php/7.4/mods-available/ioncube.ini
ln -s /etc/php/7.4/mods-available/ioncube.ini /etc/php/7.4/apache2/conf.d/01-ioncube.ini
ln -s /etc/php/7.4/mods-available/ioncube.ini /etc/php/7.4/cli/conf.d/01-ioncube.ini
Installing package for voipmonitor GUI
cd /var/www/html
rm -f index.html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=74&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
5 - Finalizing steps
For working alerts/reports, the system needs to run a periodically script using scheduler.
crontab -e
* * * * * root php /var/www/html/php/run.php
Set privileges for apache
chown -R www-data /var/www/html
/etc/init.d/apache2 restart
chown www-data /var/spool/voipmonitor/
set service to be started at a boot time
systemctl enable voipmonitor
#edit /etc/voipmonitor.conf (at least mysql options and maxpoolsize option)
/etc/init.d/voipmonitor start
refer to http://youripaddress
To get the trial license you can use this link to support my channel:
https://www.voipmonitor.org/whmcs/affiliates.php