Debian 13: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<span style="color:#ff0000; font-size: 20px"> Not complete due to missing support for PHP 8.4. Don't use it now !!!</span> = Install MariaDB= apt-get update apt-get -y install mariadb-server == change auth method for root@localhost user from unix_socket to mysql_native_password type with no password== Start the mysql console first with '''mysql''' and push following queries: MariaDB> ALTER USER root@localhost IDENTIFIED VIA mysql_native_password; MariaDB> SET PASSW...") |
No edit summary |
||
Line 1: | Line 1: | ||
= Install MariaDB= | = Install MariaDB= | ||
apt-get update | apt-get update | ||
Line 51: | Line 49: | ||
Set privileges for apache | Set privileges for apache | ||
chown -R www-data /var/www/html | chown -R www-data /var/www/html | ||
systemctl restart apache2 | |||
mkdir /var/spool/voipmonitor/ | mkdir /var/spool/voipmonitor/ | ||
chown www-data /var/spool/voipmonitor/ | chown www-data /var/spool/voipmonitor/ | ||
Line 64: | Line 62: | ||
./install-script.sh --no-user-input | ./install-script.sh --no-user-input | ||
#set in /etc/voipmonitor.conf at least interface option it can be like interface=ens33, spooldir=/var/spool/voipmonitor, cleandatabase=31, sipport=5060, maxpoolsize=102400 | #set in /etc/voipmonitor.conf at least interface option it can be like interface=ens33, spooldir=/var/spool/voipmonitor, cleandatabase=31, sipport=5060, maxpoolsize=102400 | ||
# | # start the sensor after the setting | ||
systemctl | systemctl start voipmonitor | ||
=set service to be started at a boot time= | =set service to be started at a boot time= |
Latest revision as of 11:04, 14 August 2025
Install MariaDB
apt-get update apt-get -y install mariadb-server
change auth method for root@localhost user from unix_socket to mysql_native_password type with no password
Start the mysql console first with mysql and push following queries:
MariaDB> ALTER USER root@localhost IDENTIFIED VIA mysql_native_password; MariaDB> SET PASSWORD = PASSWORD(""); MariaDB> FLUSH PRIVILEGES;
Set mariadb's config
in /etc/mysql/mariadb.conf.d/50-server.cnf edit [mysqld] section and add options, like suggested in scalling section fo our doc
innodb_flush_log_at_trx_commit = 2 innodb_file_format = barracuda #set there up to half of available mem 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
systemctl restart mariadb
create database needed for voipmonitor
mysqladmin create voipmonitor
Install voipmonitor GUI
Installation of packages needed by voipmonitor's GUI
apt-get install php php-gd php-mysql php-cli php-curl libapache2-mod-php php-mbstring php-zip tshark mtr librsvg2-bin fonts-urw-base35 rrdtool libtiff-tools wget vim
(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_8.4.so -O /usr/lib/php/8.4/ioncube_loader_lin_8.4.so echo "zend_extension = /usr/lib/php/8.4/ioncube_loader_lin_8.4.so" > /etc/php/8.4/mods-available/ioncube.ini ln -s /etc/php/8.4/mods-available/ioncube.ini /etc/php/8.4/apache2/conf.d/01-ioncube.ini ln -s /etc/php/8.4/mods-available/ioncube.ini /etc/php/8.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=84&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`
Set privileges for apache
chown -R www-data /var/www/html systemctl restart apache2 mkdir /var/spool/voipmonitor/ chown www-data /var/spool/voipmonitor/
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 --no-user-input #set in /etc/voipmonitor.conf at least interface option it can be like interface=ens33, spooldir=/var/spool/voipmonitor, cleandatabase=31, sipport=5060, maxpoolsize=102400 # start the sensor after the setting systemctl start voipmonitor
set service to be started at a boot time
systemctl enable voipmonitor
Now go to http://yourserver/ and finish the installation.