Ubuntu 18.04 LTS
Installation on 64bit
Mysql and packages
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
Change mysql settings
In /etc/mysql/mysql.conf.d/mysqld.cnf in [mysqld] section set options with respect to our doc Scaling#MySQL_performance and restart the service:
service mysql restart
Change root@localhost's login plugin from auth_socket to password(less) and create db for voipmonitor,
Beware The ALTER USER statement was introduced in MariaDB 10.2.0
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ""; mysql> CREATE DATABASE voipmonitor;
On older mariadb <10.2 you need to use:
mariadb> UPDATE mysql.user SET authentication_string=password(),plugin='mysql_native_password' WHERE user='root'; mariadb> FLUSH PRIVILEGES;
PHP + modules and ioncube
apt-get -y install php php-gd php-mysql php-cli php-mbstring php-xml php-zip php-gettext apt-get -y install unzip apache2 libapache2-mod-php wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.2.so -O /usr/lib/php/20170718/ioncube_loader_lin_7.2.so echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/apache2/conf.d/01-ioncube.ini echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/cli/conf.d/01-ioncube.ini
Install latest sniffer
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz tar xzf voipmonitor*.tar.gz cd voipmonitor* ./install-script.sh
Edit /etc/voipmonitor.conf
/etc/init.d/voipmonitor start systemctl enable voipmonitor
Install voipmonitor's GUI
cd /var/www/html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=72&festry" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ rm -f index.html chown www-data /var/spool/voipmonitor/ chown -R www-data /var/www echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab kill -HUP `pgrep cron` service apache2 restart
Optional / Voluntary downloads
Binaries for the GUI
Following binaries are autodownloaded in time of first GUI login, but can be pre-installed from konsole as well
#HTML/SVG paints: wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/phantomjs-2.1.1-x86_64.gz/download -O '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' gunzip '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' chmod +x '/var/www/html/bin/phantomjs-2.1.1-x86_64' #SOX binary wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/sox-x86_64.gz/download -O '/var/www/html/bin/sox-x86_64.gz' gunzip '/var/www/html/bin/sox-x86_64.gz' chmod +x '/var/www/html/bin/sox-x86_64' #tshark binary wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/tshark-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/tshark-2.3.0.3-x86_64' #mergecap wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/mergecap-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/mergecap-2.3.0.3-x86_64' #T38 decoder wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/t38_decode-2-i686.gz/download -O '/var/www/html/bin/t38_decode-2-i686.gz' gunzip '/var/www/html/bin/t38_decode-2-i686.gz' chmod +x '/var/www/html/bin/t38_decode-2-i686'
php-mcrypt
- not needed with most recent GUI versions (useful for backward compatibility)
apt-get install php-pear php-dev apt-get install libmcrypt-dev libreadline-dev pecl install mcrypt-1.0.1 echo 'extension=mcrypt.so' > /etc/php/7.2/apache2/conf.d/99-mcrypt.ini echo 'extension=mcrypt.so' > /etc/php/7.2/cli/conf.d/99-mcrypt.ini
Installation on 64bit copy & paste
This copy and paste script works on fresh install of a linux (when none voipmonitor installed there), otherwise take care of stars '*' in cd,tar,mv commands
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server php php-gd php-mysql php-cli php-mbstring php-xml php-zip php-gettext unzip apache2 libapache2-mod-php wget wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.2.so -O /usr/lib/php/20170718/ioncube_loader_lin_7.2.so echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/apache2/conf.d/01-ioncube.ini echo "zend_extension = /usr/lib/php/20170718/ioncube_loader_lin_7.2.so" > /etc/php/7.2/cli/conf.d/01-ioncube.ini cd /var/www/html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=72&festry" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ rm -f index.html echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab kill -HUP `pgrep cron` service apache2 restart wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/phantomjs-2.1.1-x86_64.gz/download -O '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' gunzip '/var/www/html/bin/phantomjs-2.1.1-x86_64.gz' chmod +x '/var/www/html/bin/phantomjs-2.1.1-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/sox-x86_64.gz/download -O '/var/www/html/bin/sox-x86_64.gz' gunzip '/var/www/html/bin/sox-x86_64.gz' chmod +x '/var/www/html/bin/sox-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/tshark-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/tshark-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/tshark-2.3.0.3-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/mergecap-2.3.0.3-x86_64.gz/download -O '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' gunzip '/var/www/html/bin/mergecap-2.3.0.3-x86_64.gz' chmod +x '/var/www/html/bin/mergecap-2.3.0.3-x86_64' wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/t38_decode-2-i686.gz/download -O '/var/www/html/bin/t38_decode-2-i686.gz' gunzip '/var/www/html/bin/t38_decode-2-i686.gz' chmod +x '/var/www/html/bin/t38_decode-2-i686' cd /usr/src wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz tar xzf voipmonitor*.tar.gz rm -rf voipmonitor*.tar.gz chown www-data /var/spool/voipmonitor/ chown -R www-data /var/www/html cd voipmonitor* ./install-script.sh --no-user-input systemctl enable voipmonitor
Before first login to GUI with browser after use of copy&paste for install, you need to edit mysql config and voipmonitor service config, and restart both services.