Almalinux 9.5: Difference between revisions
Jump to navigation
Jump to search
Line 60: | Line 60: | ||
systemctl restart httpd.service | systemctl restart httpd.service | ||
systemctl restart php-fpm.service | systemctl restart php-fpm.service | ||
= Disable the firewalld = | = Disable the firewalld = |
Revision as of 20:42, 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
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
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.