Almalinux 9.5: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 21: Line 21:


== Install voipmonitor sensor service ==
== Install voipmonitor sensor service ==
=== istall the sniffer service and its files ===
=== install the sniffer service and its files ===
  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 28: Line 28:
  cd `ls -d voipmonitor*/`
  cd `ls -d voipmonitor*/`
  ./install-script.sh --no-user-iput
  ./install-script.sh --no-user-iput
=== systemd configure ===
=== systemd configure ===
Create the voipmonitor.service file as described in [[Systemd_for_voipmonitor_service_management]]
Create the voipmonitor.service file as described in [[Systemd_for_voipmonitor_service_management]]
Line 43: Line 44:


== Install voipmonitor GUI==
== Install voipmonitor GUI==
=== Install the GUI's package ===
  cd /var/www/html  
  cd /var/www/html  
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=72" -O w.tar.gz
  wget "http://www.voipmonitor.org/download-gui?version=latest&allowed&phpver=82" -O w.tar.gz
  tar xzf w.tar.gz  
  tar xzf w.tar.gz  
  mv voipmonitor-gui*/* ./
  mv voipmonitor-gui*/* ./
Line 50: Line 52:
  chown apache /var/spool/voipmonitor/
  chown apache /var/spool/voipmonitor/
  chown -R apache /var/www/html
  chown -R apache /var/www/html
#For alerts/reports
=== Activate alerts/reports/license updates ===
  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`
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)


=== 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
=== Activate the ioncube in php 8.2===
(GUI's source code is secured by the ioncube module)
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
  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 httpd.service
  systemctl restart php-fpm.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 =
= Disable the firewalld =

Latest revision as of 20:50, 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

install the sniffer service and its files

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

Install the GUI's package

cd /var/www/html 
wget "http://www.voipmonitor.org/download-gui?version=latest&allowed&phpver=82" -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

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)


Activate the ioncube in php 8.2

(GUI's source code is secured by the ioncube module)

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
systemctl restart httpd.service
systemctl restart php-fpm.service

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.