Almalinux 9.5
Jump to navigation
Jump to search
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.