Difference between revisions of "Ubuntu 16.04 LTS"
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...") |
|||
Line 1: | Line 1: | ||
= Install voipmonitor sensor and GUI for '''64bit''' arch= | = Install voipmonitor sensor and GUI for '''64bit''' arch= | ||
+ | == Instalation of apache2 php5.6 and php7.0 and setting to use php 5.6 by default== | ||
+ | apt-get install software-properties-common | ||
+ | add-apt-repository ppa:ondrej/php | ||
+ | apt-get update | ||
+ | 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 | ||
+ | |||
==Installation of packages needed by voipmonitor== | ==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) | ||
− | + | ==Instalation of latest voipmonitor sensor binary | |
− | + | cd /usr/src/ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | 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 | ||
+ | #You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option | ||
+ | /etc/init.d/voipmonitor start | ||
− | == | + | ==Instalation of latest voipmonitor GUI== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
cd /var/www/html | cd /var/www/html | ||
− | |||
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 | ||
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 | ||
+ | |||
+ | ==Enabling ioncube module in php 5.6 and restarting apache== | ||
+ | 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 | ||
− | == | + | ==Setting scheduler cron for voipmonitor alerts/reports |
− | |||
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` | ||
− | + | ln -s /usr/bin/php5.6 /etc/alternatives/php | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Install voipmonitor sensor and GUI for '''64bit''' arch COPY/PASTE script= | = Install voipmonitor sensor and GUI 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 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 | ||
+ | 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 | ||
+ | #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` | ||
+ | ln -s /usr/bin/php5.6 /etc/alternatives/php | ||
+ | service apache2 restart |
Revision as of 18:05, 29 April 2016
Install voipmonitor sensor and GUI for 64bit arch
Instalation of apache2 php5.6 and php7.0 and setting to use php 5.6 by default
apt-get install software-properties-common add-apt-repository ppa:ondrej/php apt-get update 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
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)
==Instalation of latest voipmonitor sensor binary
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 #You should edit /etc/voipmonitor.conf and set properly at least interface option and mysql password option /etc/init.d/voipmonitor start
Instalation of latest voipmonitor GUI
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" chown -R www-data /var/www
Enabling ioncube module in php 5.6 and restarting apache
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
==Setting scheduler cron for voipmonitor alerts/reports
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
Install voipmonitor sensor and GUI 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 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 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 #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` ln -s /usr/bin/php5.6 /etc/alternatives/php service apache2 restart