Almalinux 9.5: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
Line 20: Line 20:
  systemctl enable mysqld.service
  systemctl enable mysqld.service


== Install voipmonitor sensor ==
== Install voipmonitor sensor service ==
  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
Line 27: Line 27:
  cd `ls -d voipmonitor*/`
  cd `ls -d voipmonitor*/`
  ./install-script.sh --no-user-iput
  ./install-script.sh --no-user-iput
=== systemd configure ===
Create the voipmonitor.service file as described in [[Systemd_for_voipmonitor_service_management]]
After steps done enable the service after bootup with
systemctl enable voipmonitor


=== configure the sniffer service ===  
=== configure the sniffer service ===
  # at least set proper interface in the configuration file
  # at least set proper interface in the configuration file
  # vim /etc/voipmonitor.conf
  # vim /etc/voipmonitor.conf
  # Instead of use /etc/init.d/voipmonitor start/stop, please use 'systemctl start voipmonitor.service'
  # Instead of use /etc/init.d/voipmonitor start/stop, please use 'systemctl start voipmonitor.service'
   
   
=== enable and start the sniffer service ===
=== start the sniffer service ===
systemctl restart voipmonitor


systemctl enable voipmonitor.service
systemctl restart voipmonitor.service
 
== Install voipmonitor GUI==
== Install voipmonitor GUI==
  cd /var/www/html  
  cd /var/www/html  

Revision as of 20:40, 19 March 2025

Installation procedure

  • it's for all-in-one variant (a database, the gui and sensor on one server)

Because the alamlinux 9.5 come with php 8.0 which is not supported by our GUI, you need to install remi's repositories and enable php 8.1 or 8.2 there:

Prepare php 8.2 to be used

yum install wget -y
dnf install epel-release -y
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
dnf module enable php:remi-8.2 -y


Install Mysql and php packages for the GUI

yum -y install httpd wireshark php php-gd php-mysqlnd php-mbstring mtr php-process librsvg2 librsvg2-tools urw-fonts mysql mysql-server
systemctl start httpd.service
systemctl enable httpd.service
systemctl start mysqld.service
systemctl enable mysqld.service

Install voipmonitor sensor service

cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
mkdir /etc/init.d/
cd `ls -d voipmonitor*/`
./install-script.sh --no-user-iput

systemd configure

Create the voipmonitor.service file as described in Systemd_for_voipmonitor_service_management After steps done enable the service after bootup with

systemctl enable voipmonitor

configure the sniffer service

# at least set proper interface in the configuration file
# vim /etc/voipmonitor.conf
# Instead of use /etc/init.d/voipmonitor start/stop, please use 'systemctl start voipmonitor.service'

start the sniffer service

systemctl restart voipmonitor

Install voipmonitor GUI

cd /var/www/html 
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=72" -O w.tar.gz
tar xzf w.tar.gz 
mv voipmonitor-gui*/* ./
rm -f index.html
chown apache /var/spool/voipmonitor/
chown -R apache /var/www/html
#For alerts/reports
echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
kill -HUP `pgrep cron`

adding the ioncube module to a web service for php 8.2

this is how the GUI is secured - using the ioncube module - you need to enable ioncube module in php's processig

echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_8.2.so" > /etc/php.d/01_ioncube.ini
systemctl restart httpd.service
systemctl restart php-fpm.service
# Warning! Tested installation of CENTOS8-64bit may come with activated firewall restrictions, ensure you have right settings.
# If you want pierce thru firewall setting and your address is 192.168.88.208, use comand 'iptables -I INPUT -s 192.168.88.208 -j ACCEPT'.
# or just disable firewalld which is activated by default use: 'service firewalld stop' (and 'systemctl disable firewalld' for not start service at startup)

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

Disable the firewalld

# Warning! Tested installation of Almaliux9.5 came with activated firewall restrictions, ensure you have right settings.
# If you want pierce thru firewall setting and your address is 192.168.88.208, use comand 'iptables -I INPUT -s 192.168.88.208 -j ACCEPT'.
# or just disable firewalld which is activated by default use: 'service firewalld stop' (and 'systemctl disable firewalld' for not start service at startup)

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