Rocky 10: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 28: Line 28:
  dnf install mysql8.4-server
  dnf install mysql8.4-server


===Set up===
===set the service===
====set the service====
(set there up to half of available RAM for innodb_buffer_pool_size, read more in [[scaling]] section of our doc)
(set there up to half of available RAM for innodb_buffer_pool_size, read more in [[scaling]] section of our doc)
   echo 'innodb_flush_log_at_trx_commit = 2' >> /etc/my.cnf.d/mysql-server.cnf
   echo 'innodb_flush_log_at_trx_commit = 2' >> /etc/my.cnf.d/mysql-server.cnf
Line 35: Line 34:
   # adjust 8GB to you memory size !
   # adjust 8GB to you memory size !
   echo 'innodb_buffer_pool_size = 8GB' >> /etc/my.cnf.d/mysql-server.cnf
   echo 'innodb_buffer_pool_size = 8GB' >> /etc/my.cnf.d/mysql-server.cnf
 
 
==Activating web and db services==
==Activating web and db services==
  systemctl start httpd.service
  systemctl start httpd.service
Line 42: Line 41:
  systemctl enable mysqld.service
  systemctl enable mysqld.service
   
   
  # this will force you to set a password for root so adjsut settings in the voipmonitor.conf
  # this will force you to set a password for the root user so adjust settings in the voipmonitor.conf after sensor installation
  mysql_secure_installation
  mysql_secure_installation


Line 55: Line 54:
(It is used by systemd to control service's states)
(It is used by systemd to control service's states)


Please, get a service file [[systemd for voipmonitor service management|here]]
Please, get a service unit file from [[systemd for voipmonitor service management|here]]
  vim /etc/systemd/system/voipmonitor.service
  vim /etc/systemd/system/voipmonitor.service


Line 66: Line 65:
  ./install-script.sh --no-user-input
  ./install-script.sh --no-user-input
   
   
  #at least set interface option in configuration file
  # at least set interface option in configuration file
# if you set the password for mysql root user with 'mysql_secure_installation' then adjust it too
  #vim /etc/voipmonitor.conf
  #vim /etc/voipmonitor.conf
   
   
Line 80: Line 80:
  systemctl stop firewalld
  systemctl stop firewalld
==disable firewalld service==
==disable firewalld service==
(not loads at host bootup
(not loads at host bootup)
  systemctl disable firewalld
  systemctl disable firewalld



Latest revision as of 18:57, 31 July 2025

Installation procedure

GUI

Install necessary packages for GUI operations

dnf install wget httpd wireshark php php-gd php-mysqlnd php-mbstring php-zip mtr php-process librsvg2 librsvg2-tools urw-fonts tar vim

Install ioncube module for httpd and disable SE linux

wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_8.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_8.3.so
echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_8.3.so" > /etc/php.d/01_ioncube.ini
chown -R apache /var/www/html
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
systemctl restart httpd.service

GUI's package installation

cd /var/www/html 
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=83" -O w.tar.gz
tar xzf w.tar.gz 
mv voipmonitor-gui*/* ./
mkdir /var/spool/voipmonitor/
chown apache /var/spool/voipmonitor/
chown apache -R /var/www/html

Database Mysql 8.4

Install

dnf install mysql8.4-server

set the service

(set there up to half of available RAM for innodb_buffer_pool_size, read more in scaling section of our doc)

 echo 'innodb_flush_log_at_trx_commit = 2' >> /etc/my.cnf.d/mysql-server.cnf
 echo 'skip-log-bin' >> /etc/my.cnf.d/mysql-server.cnf
 # adjust 8GB to you memory size !
 echo 'innodb_buffer_pool_size = 8GB' >> /etc/my.cnf.d/mysql-server.cnf

Activating web and db services

systemctl start httpd.service
systemctl enable httpd.service
systemctl start mysqld.service
systemctl enable mysqld.service

# this will force you to set a password for the root user so adjust settings in the voipmonitor.conf after sensor installation
mysql_secure_installation

Activate alerts/reports/license updates

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

Don't forget to install the MTA to make possible to send the email with php's email functions. (make possible to send the emails via the CLI)

Install voipmonitor's sniffer service

Prepare service file

(It is used by systemd to control service's states)

Please, get a service unit file from here

vim /etc/systemd/system/voipmonitor.service

Install the service's binary

cd /usr/local/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz -O ./current-stable-sniffer-static-64bit.tar.gz
tar xzf current-stable-sniffer-static-64bit.tar.gz
cd `dirname \`find . |grep install-script\``
mkdir /etc/init.d
./install-script.sh --no-user-input

# at least set interface option in configuration file
# if you set the password for mysql root user with 'mysql_secure_installation' then adjust it too
#vim /etc/voipmonitor.conf

systemctl daemon-reload
systemctl restart voipmonitor.service 
systemctl enable voipmonitor.service

Firewalld

Allow your IP to reach http of the GUI

iptables -I INPUT -s YOUR_IP -j ACCEPT

stop firewalld service

systemctl stop firewalld

disable firewalld service

(not loads at host bootup)

systemctl disable firewalld


Now go to http://yourserver/ and finish the installation.