Difference between revisions of "Centos 6.5"

From VoIPmonitor.org
Jump to navigation Jump to search
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Fast installation for 64 bit==
 
== Fast installation for 64 bit==
  
  yum -y install httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2 urw-fonts
+
  yum -y install wget httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2 urw-fonts
 
  chkconfig --add httpd
 
  chkconfig --add httpd
 
  chkconfig httpd on
 
  chkconfig httpd on
Line 12: Line 12:
 
  tar xzf voipmonitor*.tar.gz
 
  tar xzf voipmonitor*.tar.gz
 
  cd voipmonitor*
 
  cd voipmonitor*
  ./install-script.sh
+
  ./install-script.sh --no-user-input
 
  mysqladmin create voipmonitor
 
  mysqladmin create voipmonitor
 
  # edit /etc/voipmonitor.conf and set appropriate mysql password  
 
  # edit /etc/voipmonitor.conf and set appropriate mysql password  
Line 28: Line 28:
 
  chmod +x "/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_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
 
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
  echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/ioncube.ini
+
  echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/01_ioncube.ini
 
  chown -R apache /var/www/html
 
  chown -R apache /var/www/html
 
  sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
 
  sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
Line 36: Line 36:
 
Now go to http://yourserver/ and finish the installation (you need the key from [http://www.voipmonitor.org/download-gui?version=license]
 
Now go to http://yourserver/ and finish the installation (you need the key from [http://www.voipmonitor.org/download-gui?version=license]
  
 +
If webpage is not available 'ERR_CONNECTION_TIMED_OUT' shown, httpd is running, please check your firewall settings. How to disable -[http://wiki.voipmonitor.org/doc/Centos_6.5#Disabling_firewall]
  
 
== Fast installation for 32 bit==
 
== Fast installation for 32 bit==
Line 50: Line 51:
 
  tar xzf voipmonitor*.tar.gz
 
  tar xzf voipmonitor*.tar.gz
 
  cd voipmonitor*
 
  cd voipmonitor*
  ./install-script.sh
+
  ./install-script.sh --no-user-input
 
  mysqladmin create voipmonitor
 
  mysqladmin create voipmonitor
 
  # edit /etc/voipmonitor.conf and set appropriate mysql password  
 
  # edit /etc/voipmonitor.conf and set appropriate mysql password  
Line 61: Line 62:
 
  mkdir /var/spool/voipmonitor/
 
  mkdir /var/spool/voipmonitor/
 
  chown apache /var/spool/voipmonitor/
 
  chown apache /var/spool/voipmonitor/
  wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-i686 -O "/var/www/bin/wkhtmltoimage-i686"
+
  wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-i686 -O "/var/www/html/bin/wkhtmltoimage-i686"
  chmod +x "/var/www/bin/wkhtmltoimage-i686"
+
  chmod +x "/var/www/html/bin/wkhtmltoimage-i686"
  wget  http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-i686 -O "/var/www/bin/wkhtmltopdf-i686"
+
  wget  http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-i686 -O "/var/www/html/bin/wkhtmltopdf-i686"
  chmod +x "/var/www/bin/wkhtmltopdf-i686"
+
  chmod +x "/var/www/html/bin/wkhtmltopdf-i686"
 
  wget  http://voipmonitor.org/ioncube/i686/ioncube_loader_lin_5.3.so -O /usr/lib/php/modules/ioncube_loader_lin_5.3.so
 
  wget  http://voipmonitor.org/ioncube/i686/ioncube_loader_lin_5.3.so -O /usr/lib/php/modules/ioncube_loader_lin_5.3.so
  echo "zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/ioncube.ini
+
  echo "zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/01_ioncube.ini
 
  chown -R apache /var/www/html
 
  chown -R apache /var/www/html
 
  sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
 
  sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
Line 73: Line 74:
  
 
Now go to http://yourserver/ and finish the installation (you need the key from [http://www.voipmonitor.org/download-gui?version=license]
 
Now go to http://yourserver/ and finish the installation (you need the key from [http://www.voipmonitor.org/download-gui?version=license]
 +
 +
If webpage is not available 'ERR_CONNECTION_TIMED_OUT' shown, httpd is running, please check your firewall settings. How to disable -[http://wiki.voipmonitor.org/doc/Centos_6.5#Disabling_firewall]
  
 
== Step by step ==
 
== Step by step ==
  
Packages installation
+
===Packages installation===
  
 
  yum -y install httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2
 
  yum -y install httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2
Line 86: Line 89:
 
  /etc/init.d/mysqld start
 
  /etc/init.d/mysqld start
  
Sniffer installation  
+
===Sniffer installation===
  
 
  cd /usr/src/
 
  cd /usr/src/
Line 93: Line 96:
 
  cd voipmonitor*
 
  cd voipmonitor*
 
  ./install-script.sh
 
  ./install-script.sh
 +
 +
Handle spool directory
 +
 
  mkdir /var/spool/voipmonitor/
 
  mkdir /var/spool/voipmonitor/
 
  chown apache /var/spool/voipmonitor/
 
  chown apache /var/spool/voipmonitor/
  
Create database
+
===Create database===
  
 
  mysqladmin create voipmonitor
 
  mysqladmin create voipmonitor
  
Installing WEB GUI
+
===Installing WEB GUI===
  
 
  cd /var/www/html
 
  cd /var/www/html
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed" -O w.tar.gz
+
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=53" -O w.tar.gz
 
  tar xzf w.tar.gz
 
  tar xzf w.tar.gz
 
  mv voipmonitor-gui*/* ./
 
  mv voipmonitor-gui*/* ./
Line 109: Line 115:
 
  chown -R apache /var/www/html
 
  chown -R apache /var/www/html
  
Installing wkhtmltopdf binaries needed for GUI charts and reprots
+
'''Installing wkhtmltopdf''' binaries needed for GUI charts and reprots
  
 
  wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
 
  wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/html/bin/wkhtmltoimage-x86_64"
Line 116: Line 122:
 
  chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
 
  chmod +x "/var/www/html/bin/wkhtmltopdf-x86_64"
  
Installing IonCUBE extension for PHP which is neccessery for running voipmonitor GUI php scripts
+
'''Installing IonCUBE extension''' for PHP which is neccessery for running voipmonitor GUI php scripts
  
 
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
 
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
  echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/ioncube.ini
+
  echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/01_ioncube.ini
  
Disabling SELINUX which blocks IonCUBE and access to /var/spool/voipmonitor for PHP process preventing to GUI work as expected. Turning off SELINUX is the simplest solution but feel free to configure otherwise
+
'''Disabling SELINUX''' which blocks IonCUBE and access to /var/spool/voipmonitor for PHP process preventing to GUI work as expected. Turning off SELINUX is the simplest solution but feel free to configure otherwise
  
 
  sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
 
  sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
 
  setenforce 0
 
  setenforce 0
 
  /etc/init.d/httpd restart
 
  /etc/init.d/httpd restart
 +
 +
==Disabling firewall==
 +
iptables -F INPUT
 +
service iptables save
 +
Note: Disabling firewall is not recommended - just for testing purposes

Latest revision as of 15:14, 24 July 2020

Fast installation for 64 bit

yum -y install wget httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2 urw-fonts
chkconfig --add httpd
chkconfig httpd on
/etc/init.d/httpd start
chkconfig --add mysqld
chkconfig mysqld on
/etc/init.d/mysqld start
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
mysqladmin create voipmonitor
# edit /etc/voipmonitor.conf and set appropriate mysql password 
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=53" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
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_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.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
/etc/init.d/httpd restart

Now go to http://yourserver/ and finish the installation (you need the key from [1]

If webpage is not available 'ERR_CONNECTION_TIMED_OUT' shown, httpd is running, please check your firewall settings. How to disable -[2]

Fast installation for 32 bit

yum -y install httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2 urw-fonts
chkconfig --add httpd
chkconfig httpd on
/etc/init.d/httpd start
chkconfig --add mysqld
chkconfig mysqld on
/etc/init.d/mysqld start
cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-32bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh --no-user-input
mysqladmin create voipmonitor
# edit /etc/voipmonitor.conf and set appropriate mysql password 
/etc/init.d/voipmonitor start
cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&phpver=53&allowed" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
mkdir /var/spool/voipmonitor/
chown apache /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-i686 -O "/var/www/html/bin/wkhtmltoimage-i686"
chmod +x "/var/www/html/bin/wkhtmltoimage-i686"
wget  http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-i686 -O "/var/www/html/bin/wkhtmltopdf-i686"
chmod +x "/var/www/html/bin/wkhtmltopdf-i686"
wget  http://voipmonitor.org/ioncube/i686/ioncube_loader_lin_5.3.so -O /usr/lib/php/modules/ioncube_loader_lin_5.3.so
echo "zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.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
/etc/init.d/httpd restart

Now go to http://yourserver/ and finish the installation (you need the key from [3]

If webpage is not available 'ERR_CONNECTION_TIMED_OUT' shown, httpd is running, please check your firewall settings. How to disable -[4]

Step by step

Packages installation

yum -y install httpd wireshark php php-gd php-mysql php-mbstring mtr php-process mysql-server librsvg2
chkconfig --add httpd
chkconfig httpd on
/etc/init.d/httpd start
chkconfig --add mysqld
chkconfig mysqld on
/etc/init.d/mysqld start

Sniffer installation

cd /usr/src/
wget --content-disposition http://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh

Handle spool directory

mkdir /var/spool/voipmonitor/
chown apache /var/spool/voipmonitor/

Create database

mysqladmin create voipmonitor

Installing WEB GUI

cd /var/www/html
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=53" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
chown -R apache /var/www/html

Installing wkhtmltopdf binaries needed for GUI charts and reprots

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"

Installing IonCUBE extension for PHP which is neccessery for running voipmonitor GUI php scripts

wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/01_ioncube.ini

Disabling SELINUX which blocks IonCUBE and access to /var/spool/voipmonitor for PHP process preventing to GUI work as expected. Turning off SELINUX is the simplest solution but feel free to configure otherwise

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
/etc/init.d/httpd restart

Disabling firewall

iptables -F INPUT
service iptables save

Note: Disabling firewall is not recommended - just for testing purposes