Debian 8: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Install Mysql=
Please, follow this how to: [[http://wiki.voipmonitor.org/doc/Mysql_5.6#Debian_8]]


= Install mysql 5.6 =
Install mysql as descibed here first: [[http://wiki.voipmonitor.org/doc/Mysql_5.6#Debian_8]]


 
= Install voipmonitor sensor and GUI for '''64bit''' arch=
= Install voipmonitor sensor and GUI=
==Installation of packages needed by voipmonitor==
==64bit==
to works correctly (we assume latest mysql-5.7 is already installed link [[http://wiki.voipmonitor.org/doc/Mysql_5.6#Debian_8]])
===Installation of packages needed by voipmonitor=== to works correctly (we assume latest mysql-5.6 is already installed link->)
  apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr php5-mcrypt librsvg2-bin gsfonts rrdtool
  apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr php5-mcrypt librsvg2-bin gsfonts rrdtool
(When asked if non-superuser can capture traffic You can answer No)
(When asked if non-superuser can capture traffic You can answer No)


===Now we create database needed for voipmonitor.===
==create database needed for voipmonitor==
  mysqladmin create voipmonitor
  mysqladmin create voipmonitor


Installing sensor
==Installing sensor - voipmonitor service==
  mkdir /usr/src/voipmonitor
  mkdir /usr/src/voipmonitor
  cd /usr/src/voipmonitor
  cd /usr/src/voipmonitor
Line 21: Line 20:
  ./install-script.sh
  ./install-script.sh


Installing IOncube to php and apache
==Installing IOncube - php loader / decryptor==
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so
  echo "zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so" > /etc/php5/mods-available/ioncube.ini
  echo "zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so" > /etc/php5/mods-available/ioncube.ini
Line 27: Line 26:
  ln -s /etc/php5/mods-available/ioncube.ini /etc/php5/cli/conf.d/01-ioncube.ini
  ln -s /etc/php5/mods-available/ioncube.ini /etc/php5/cli/conf.d/01-ioncube.ini


Installing GUI
==Installing voipmonitor GUI==
  cd /var/www/html
  cd /var/www/html
  rm -f index.html  
  rm -f index.html  
Line 34: Line 33:
  mv voipmonitor-gui*/* ./
  mv voipmonitor-gui*/* ./


Finalizing steps:
==Finalizing steps==
  mkdir /var/spool/voipmonitor/  
For working alerts / reports run periodicaly script using scheduller and reload config
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 www-data /var/spool/voipmonitor/
  chown -R www-data /var/www/html
  chown -R www-data /var/www/html
  /etc/init.d/apache2 restart
  /etc/init.d/apache2 restart
 
# edit /etc/voipmonitor.conf and set appropriate mysql password and save* options
Edit sensor settings and start sensor - edit /etc/voipmonitor.conf and set appropriate mysql password and save* options
  /etc/init.d/voipmonitor start
  /etc/init.d/voipmonitor start


   
Enable service start via sysV with:
  systemctl enable voipmonitor


==32but==
= Install voipmonitor sensor and GUI for '''32bit''' arch=

Latest revision as of 20:06, 8 March 2018

Install Mysql

Please, follow this how to: [[1]]


Install voipmonitor sensor and GUI for 64bit arch

Installation of packages needed by voipmonitor

to works correctly (we assume latest mysql-5.7 is already installed link [[2]])

apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr php5-mcrypt 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 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
tar xzf voipmonitor*.tar.gz 
cd voipmonitor-*
./install-script.sh

Installing IOncube - php loader / decryptor

wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.6.so -O /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so
echo "zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so" > /etc/php5/mods-available/ioncube.ini
ln -s /etc/php5/mods-available/ioncube.ini /etc/php5/apache2/conf.d/01-ioncube.ini
ln -s /etc/php5/mods-available/ioncube.ini /etc/php5/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=56&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./

Finalizing steps

For working alerts / reports run periodicaly script using scheduller and reload config

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 and save* options

/etc/init.d/voipmonitor start

Enable service start via sysV with:

systemctl enable voipmonitor

Install voipmonitor sensor and GUI for 32bit arch