Rocky 9: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| No edit summary | |||
| (7 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
|   dnf module install php:remi-8.2 |   dnf module install php:remi-8.2 | ||
| ===Install necessary packages for GUI operations  | ===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  |   dnf install wget httpd wireshark php php-gd php-mysqlnd php-mbstring php-zip mtr php-process librsvg2 librsvg2-tools urw-fonts | ||
| ===Install ioncube module for httpd and disable SE linux=== | ===Install ioncube module for httpd and disable SE linux=== | ||
| Line 24: | Line 24: | ||
|   systemctl restart httpd.service |   systemctl restart httpd.service | ||
| ==GUI's package installation== | ===GUI's package installation=== | ||
|   cd /var/www/html   |   cd /var/www/html   | ||
|   wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=82" -O w.tar.gz |   wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=82" -O w.tar.gz | ||
| Line 32: | Line 32: | ||
|   chown apache -R /var/www/html |   chown apache -R /var/www/html | ||
| ==Set up the  | ==Database Mysql 8.0== | ||
| ===Install=== | |||
|  dnf install mysql-server | |||
| ===Set up=== | |||
| ====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 'default-authentication-plugin=mysql_native_password' >> /etc/my.cnf.d/mysql-server.cnf   |    echo 'default-authentication-plugin=mysql_native_password' >> /etc/my.cnf.d/mysql-server.cnf   | ||
| Line 39: | Line 45: | ||
|    echo 'skip-log-bin' >> /etc/my.cnf.d/mysql-server.cnf |    echo 'skip-log-bin' >> /etc/my.cnf.d/mysql-server.cnf | ||
| === | ====change auth plugin==== | ||
| You need to change the root@localhost's password to none, otherwise you will need to set mysqlpassword option in /etc/voipmonitor.conf) | You need to change the root@localhost's password to none, otherwise you will need to set mysqlpassword option in /etc/voipmonitor.conf) | ||
| Login to mysql and run queries: | Start and Login to mysql and run queries: | ||
|   ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY ''; |   ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '''''''; | ||
|   FLUSH PRIVILEGES; |   FLUSH PRIVILEGES; | ||
| Line 53: | Line 59: | ||
| ==Install voipmonitor's sniffer service== | ==Install voipmonitor's sniffer service== | ||
| ===Prepare service file=== | |||
| (It is used by systemd to control service's states) | |||
| Please, get a service file [[systemd for voipmonitor service management|here]] | |||
|  vim /etc/systemd/system/voipmonitor.service | |||
| ===Install the service's binary=== | |||
|   cd /usr/local/src/ |   cd /usr/local/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 -O ./current-stable-sniffer-static-64bit.tar.gz | ||
|   tar xzf  |   tar xzf current-stable-sniffer-static-64bit.tar.gz | ||
|   cd `dirname \`find . |grep install-script\`` |   cd `dirname \`find . |grep install-script\`` | ||
|   mkdir /etc/init.d |   mkdir /etc/init.d | ||
|   ./install-script.sh --no-user-input |   ./install-script.sh --no-user-input | ||
|   #at least set  |   #at least set interface option in configuration file | ||
|   #vim /etc/voipmonitor.conf |   #vim /etc/voipmonitor.conf | ||
|   systemctl daemon-reload |   systemctl daemon-reload | ||
|   systemctl restart voipmonitor.service   |   systemctl restart voipmonitor.service   | ||
|   systemctl enable 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. | Now go to http://yourserver/ and finish the installation. | ||
Revision as of 13:00, 27 November 2024
Installation procedure
GUI
Upgrade php's version to 8.2
(there is no ioncube for php8.0)
dnf install epel-release dnf install http://rpms.remirepo.net/enterprise/remi-release-9.rpm dnf install dnf-utils dnf update dnf module reset php dnf module install php:remi-8.2
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
Install ioncube module for httpd and disable SE linux
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_8.2.so -O /usr/lib64/php/modules/ioncube_loader_lin_8.2.so echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_8.2.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=82" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ chown apache /var/spool/voipmonitor/ chown apache -R /var/www/html
Database Mysql 8.0
Install
dnf install mysql-server
Set up
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 'default-authentication-plugin=mysql_native_password' >> /etc/my.cnf.d/mysql-server.cnf echo 'innodb_flush_log_at_trx_commit = 2' >> /etc/my.cnf.d/mysql-server.cnf echo 'innodb_buffer_pool_size = 8GB' >> /etc/my.cnf.d/mysql-server.cnf echo 'skip-log-bin' >> /etc/my.cnf.d/mysql-server.cnf
change auth plugin
You need to change the root@localhost's password to none, otherwise you will need to set mysqlpassword option in /etc/voipmonitor.conf) Start and Login to mysql and run queries:
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY ''; FLUSH PRIVILEGES;
Activating web and db services
systemctl start httpd.service systemctl enable httpd.service systemctl start mysqld.service systemctl enable mysqld.service mysql_secure_installation
Install voipmonitor's sniffer service
Prepare service file
(It is used by systemd to control service's states)
Please, get a service file 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 #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.