Ubuntu 16.04 LTS: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
(Created page with "= Install voipmonitor sensor and GUI for '''64bit''' arch= ==Installation of packages needed by voipmonitor== add-apt-repository ppa:ondrej/php apt-get install software-prope...")
 
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Install voipmonitor sensor and GUI for '''64bit''' arch=
= Install voipmonitor sensor and GUI for '''64bit''' arch=
==Installation of packages needed by voipmonitor==


add-apt-repository ppa:ondrej/php
== Add the repository if you want different php from 7.0==
apt-get install software-properties-common
(this step is usually not needed)
add-apt-repository ppa:ondrej/php
apt-get install software-properties-common
apt-get update
add-apt-repository ppa:ondrej/php
apt-get -y install php7.0 php5.6 php5.6-gd php5.6-mysql php5.6-cli apache2 php-gettext php5.6-mbstring libapache2-mod-php5.6 libapache2-mod-php7.0 php5.6-mcrypt mysql-server
add-apt-repository ppa:ondrej/php5-compat
apt-get -y install tshark mtr librsvg2-bin gsfonts
apt-get update
cd /usr/src/
 
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
= Choose your preferred php version =
tar xzf voipmonitor*.tar.gz
 
cd voipmonitor*
== Installation of apache2 php5.6 and ioncube ==
./install-script.sh
apt-get -y install php5.6 php5.6-gd php5.6-mysql php5.6-cli apache2 php-gettext php5.6-mbstring libapache2-mod-php5.6 php5.6-mcrypt php5.6-xml php5.6-zip unzip
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php/20131226/ioncube_loader_lin_5.6.so
/etc/init.d/voipmonitor start
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/apache2/conf.d/01-ioncube.ini
cd /var/www/html
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/cli/conf.d/01-ioncube.ini
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
service apache2 restart
tar xzf w.tar.gz
 
mv voipmonitor-gui*/* ./
== Installation of apache2 php7.0 and ioncube ==
rm -f index.html
apt-get -y install php7.0 php7.0-gd php7.0-mysql php7.0-cli apache2 php-gettext php7.0-mbstring libapache2-mod-php7.0 php7.0-mcrypt php7.0-xml php7.0-zip unzip
mkdir /var/spool/voipmonitor/
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.0.so -O /usr/lib/php/20151012/ioncube_loader_lin_7.0.so
chown www-data /var/spool/voipmonitor/
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/apache2/conf.d/01-ioncube.ini
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/cli/conf.d/01-ioncube.ini
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
service apache2 restart
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php/20131226/ioncube_loader_lin_5.6.so
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/cli/conf.d/01-ioncube.ini
chown -R www-data /var/www
echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
kill -HUP `pgrep cron`
ln -s /usr/bin/php5.6 /etc/alternatives/php
php --version
service apache2 restart


(When asked if non-superuser can capture traffic You can answer No)
== Installation of apache2 php7.1 and ioncube ==
apt-get -y install php7.1 php7.1-gd php7.1-mysql php7.1-cli apache2 php-gettext php7.1-mbstring libapache2-mod-php7.1 php7.1-mcrypt php7.1-xml php7.1-zip unzip
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.1.so -O /usr/lib/php/20160303/ioncube_loader_lin_7.1.so
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/cli/conf.d/01-ioncube.ini
service apache2 restart


==create database needed for voipmonitor==
==Installation of packages needed by voipmonitor==
  mysqladmin create voipmonitor
  apt-get -y install  tshark mtr librsvg2-bin gsfonts mysql-server
(When asked if non-superuser can capture traffic You can answer No)


==Installing sensor - voipmonitor service==
==Installation of the latest voipmonitor sensor binary==
  mkdir /usr/src/voipmonitor
  #You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option after installation
  cd /usr/src/voipmonitor
  cd /usr/src/
  wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
  wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
  tar xzf voipmonitor*.tar.gz  
  tar xzf voipmonitor*.tar.gz
  cd voipmonitor-*
  cd voipmonitor*
  ./install-script.sh
  ./install-script.sh


==Installing IOncube - php loader / decryptor==
==Enable sensor's binary at startup==
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so
Create startup script for systemd
  echo "zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so" > /etc/php5/mods-available/ioncube.ini
[https://www.voipmonitor.org/doc/Systemd_for_voipmonitor_service_management systemd_startup_howto]
  ln -s /etc/php5/mods-available/ioncube.ini /etc/php5/apache2/conf.d/01-ioncube.ini
  systemctl enable voipmonitor
ln -s /etc/php5/mods-available/ioncube.ini /etc/php5/cli/conf.d/01-ioncube.ini
  systemctl start voipmonitor


==Installing voipmonitor GUI==
==Installation of the latest voipmonitor GUI==
  cd /var/www/html
  cd /var/www/html
  rm -f index.html
  # FOR PHP 5.6 and 7.0 !
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
# FOR PHP 7.1 !
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=71&festry" -O w.tar.gz
  tar xzf w.tar.gz
  tar xzf w.tar.gz
  mv voipmonitor-gui*/* ./
  mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
chown -R www-data /var/www


==Finalizing steps==
==Setting scheduler cron for voipmonitor alerts/reports and its config reload==
For working alerts / reports run periodicaly script using scheduller and reload config
  echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
  echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
  kill -HUP `pgrep cron`
  kill -HUP `pgrep cron`
Create spooldir for sensor
 
 
 
= Install voipmonitor sensor and GUI (PHP 5.6) for '''64bit''' arch COPY/PASTE script=
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php5.6 php5.6-gd php5.6-mysql php5.6-cli apache2 php-gettext php5.6-mbstring libapache2-mod-php5.6 php5.6-mcrypt php5.6-xml unzip
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
  mkdir /var/spool/voipmonitor/
  mkdir /var/spool/voipmonitor/
Set privileges for apache
  chown www-data /var/spool/voipmonitor/
  chown www-data /var/spool/voipmonitor/
  chown -R www-data /var/www/html
  wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
  /etc/init.d/apache2 restart
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php/20131226/ioncube_loader_lin_5.6.so
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/cli/conf.d/01-ioncube.ini
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
#[https://www.voipmonitor.org/doc/Systemd_for_voipmonitor_service_management Don't forget to create systemd startup script:]


Edit sensor settings and start sensor - edit /etc/voipmonitor.conf and set appropriate mysql password and save* options
= Install voipmonitor sensor and GUI (PHP 7.0) for '''64bit''' arch COPY/PASTE script=
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php7.0 php7.0-gd php7.0-mysql php7.0-cli apache2 php-gettext php7.0-mbstring libapache2-mod-php7.0 php7.0-mcrypt php7.0-xml php7.0-zip unzip
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
  /etc/init.d/voipmonitor start
  /etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.0.so -O /usr/lib/php/20151012/ioncube_loader_lin_7.0.so
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/cli/conf.d/01-ioncube.ini
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
#[https://www.voipmonitor.org/doc/Systemd_for_voipmonitor_service_management Don't forget to create systemd startup script:]


= Install voipmonitor sensor and GUI for '''64bit''' arch COPY/PASTE script=
= Install voipmonitor sensor and GUI (PHP 7.1) for '''64bit''' arch COPY/PASTE script=
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php7.1 php7.1-gd php7.1-mysql php7.1-cli apache2 php-gettext php7.1-mbstring libapache2-mod-php7.1 php7.1-mcrypt php7.1-xml php7.1-zip unzip
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=71&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.1.so -O /usr/lib/php/20160303/ioncube_loader_lin_7.1.so
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/cli/conf.d/01-ioncube.ini
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
#[https://www.voipmonitor.org/doc/Systemd_for_voipmonitor_service_management Don't forget to create systemd startup script:]

Latest revision as of 14:11, 24 July 2020

Install voipmonitor sensor and GUI for 64bit arch

Add the repository if you want different php from 7.0

(this step is usually not needed)

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/php5-compat
apt-get update

Choose your preferred php version

Installation of apache2 php5.6 and ioncube

apt-get -y install php5.6 php5.6-gd php5.6-mysql php5.6-cli apache2 php-gettext php5.6-mbstring libapache2-mod-php5.6 php5.6-mcrypt php5.6-xml php5.6-zip unzip
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php/20131226/ioncube_loader_lin_5.6.so
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/cli/conf.d/01-ioncube.ini
service apache2 restart

Installation of apache2 php7.0 and ioncube

apt-get -y install php7.0 php7.0-gd php7.0-mysql php7.0-cli apache2 php-gettext php7.0-mbstring libapache2-mod-php7.0 php7.0-mcrypt php7.0-xml php7.0-zip unzip
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.0.so -O /usr/lib/php/20151012/ioncube_loader_lin_7.0.so
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/cli/conf.d/01-ioncube.ini
service apache2 restart

Installation of apache2 php7.1 and ioncube

apt-get -y install php7.1 php7.1-gd php7.1-mysql php7.1-cli apache2 php-gettext php7.1-mbstring libapache2-mod-php7.1 php7.1-mcrypt php7.1-xml php7.1-zip unzip
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.1.so -O /usr/lib/php/20160303/ioncube_loader_lin_7.1.so
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/cli/conf.d/01-ioncube.ini
service apache2 restart

Installation of packages needed by voipmonitor

apt-get -y install  tshark mtr librsvg2-bin gsfonts mysql-server
(When asked if non-superuser can capture traffic You can answer No)

Installation of the latest voipmonitor sensor binary

#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option after installation
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh

Enable sensor's binary at startup

Create startup script for systemd systemd_startup_howto

systemctl enable voipmonitor
systemctl start voipmonitor

Installation of the latest voipmonitor GUI

cd /var/www/html
# FOR PHP 5.6 and 7.0 !
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
# FOR PHP 7.1 !
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=71&festry" -O w.tar.gz

tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
chown -R www-data /var/www

Setting scheduler cron for voipmonitor alerts/reports and its config reload

echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
kill -HUP `pgrep cron`


Install voipmonitor sensor and GUI (PHP 5.6) for 64bit arch COPY/PASTE script

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php5.6 php5.6-gd php5.6-mysql php5.6-cli apache2 php-gettext php5.6-mbstring libapache2-mod-php5.6 php5.6-mcrypt php5.6-xml unzip
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php/20131226/ioncube_loader_lin_5.6.so
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20131226/ioncube_loader_lin_5.6.so" > /etc/php/5.6/cli/conf.d/01-ioncube.ini
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
#Don't forget to create systemd startup script:

Install voipmonitor sensor and GUI (PHP 7.0) for 64bit arch COPY/PASTE script

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php7.0 php7.0-gd php7.0-mysql php7.0-cli apache2 php-gettext php7.0-mbstring libapache2-mod-php7.0 php7.0-mcrypt php7.0-xml php7.0-zip unzip
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=56&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.0.so -O /usr/lib/php/20151012/ioncube_loader_lin_7.0.so
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so" > /etc/php/7.0/cli/conf.d/01-ioncube.ini
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
#Don't forget to create systemd startup script:

Install voipmonitor sensor and GUI (PHP 7.1) for 64bit arch COPY/PASTE script

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install php7.1 php7.1-gd php7.1-mysql php7.1-cli apache2 php-gettext php7.1-mbstring libapache2-mod-php7.1 php7.1-mcrypt php7.1-xml php7.1-zip unzip
apt-get -y install tshark mtr librsvg2-bin gsfonts mysql-server
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
#You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=71&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.1.so -O /usr/lib/php/20160303/ioncube_loader_lin_7.1.so
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/apache2/conf.d/01-ioncube.ini
echo "zend_extension = /usr/lib/php/20160303/ioncube_loader_lin_7.1.so" > /etc/php/7.1/cli/conf.d/01-ioncube.ini
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
#Don't forget to create systemd startup script: