Centos 8: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 17: Line 17:
  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
  tar xzf voipmonitor*.tar.gz
  tar xzf voipmonitor*.tar.gz
  cd voipmonitor*
  cd `ls -d voipmonitor*/`
  ./install-script.sh
  ./install-script.sh
   
   
Line 33: Line 33:
  #GUI
  #GUI
  cd /var/www/html  
  cd /var/www/html  
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=71" -O w.tar.gz
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=72" -O w.tar.gz
  tar xzf w.tar.gz  
  tar xzf w.tar.gz  
  mv voipmonitor-gui*/* ./
  mv voipmonitor-gui*/* ./
Line 48: Line 48:
  setenforce 0
  setenforce 0
  systemctl restart httpd.service
  systemctl restart httpd.service
# centos8 installs php-fpm automaticaly
systemctl restart php-fpm.service
  #For alerts/reports
  #For alerts/reports
  echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
  echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
Line 72: Line 74:
  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
  tar xzf voipmonitor*.tar.gz
  tar xzf voipmonitor*.tar.gz
  cd voipmonitor*
  cd `ls -d voipmonitor*/`
  ./install-script.sh
  ./install-script.sh
   
   
Line 88: Line 90:
  #GUI
  #GUI
  cd /var/www/html  
  cd /var/www/html  
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=71" -O w.tar.gz
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=72" -O w.tar.gz
  tar xzf w.tar.gz  
  tar xzf w.tar.gz  
  mv voipmonitor-gui*/* ./
  mv voipmonitor-gui*/* ./
Line 103: Line 105:
  setenforce 0
  setenforce 0
  systemctl restart httpd.service
  systemctl restart httpd.service
# centos8 installs php-fpm automaticaly
systemctl restart php-fpm.service
  #For alerts/reports
  #For alerts/reports
  echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
  echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab

Latest revision as of 16:49, 31 August 2023

Installation procedure

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

MariaDB 10.3 variant

yum -y install wget tar httpd wireshark php php-gd php-mysqlnd php-mbstring mtr php-process php-zip php-json librsvg2 urw-fonts mariadb-server mariadb
systemctl start httpd.service
systemctl enable httpd.service
systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation
#voipmonitor sensor
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd `ls -d voipmonitor*/`
./install-script.sh

# 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'

systemctl restart voipmonitor.service

# You can check, that voipmonitor.service is running, by 'systemctl status voipmonitor.service'
# Instead of using update-rc.d, use 'systemctl enable/disable voipmonitor.service'

systemctl enable voipmonitor.service
#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/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.2.so -O /usr/lib64/php/modules/ioncube_loader_lin_7.2.so
echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.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
# centos8 installs php-fpm automaticaly
systemctl restart php-fpm.service
#For alerts/reports
echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
kill -HUP `pgrep cron`
# 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.


Mysql 8.0 variant

yum -y install wget tar httpd wireshark php php-gd php-mysqlnd php-mbstring mtr php-process php-zip php-json librsvg2 urw-fonts mysql-server mysql
systemctl start httpd.service
systemctl enable httpd.service
systemctl start mysqld.service
systemctl enable mysqld.service
mysql_secure_installation
#voipmonitor sensor
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd `ls -d voipmonitor*/`
./install-script.sh

# 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'

systemctl restart voipmonitor.service

# You can check, that voipmonitor.service is running, by 'systemctl status voipmonitor.service'
# Instead of using update-rc.d, use 'systemctl enable/disable voipmonitor.service'

systemctl enable voipmonitor.service
#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/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/html/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/html/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_7.2.so -O /usr/lib64/php/modules/ioncube_loader_lin_7.2.so
echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.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
# centos8 installs php-fpm automaticaly
systemctl restart php-fpm.service
#For alerts/reports
echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab
kill -HUP `pgrep cron`
# 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.