Centos 5.11: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
(Created page with " Note:Steps after fresh install centos 5.11 from net install (no packages choosen during installation). ==Upgrade and Install required packages== yum update yum -y install w...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:


Note:Steps after fresh install centos 5.11 from net install (no packages choosen during installation).
Note:Steps after fresh install centos 5.11 64bit from net install (no packages choosen during installation).




==Upgrade and Install required packages==
==Upgrade and Install required packages==
yum update
yum update
yum -y install wget httpd wireshark mtr librsvg2 urw-fonts
yum -y install wget httpd wireshark mtr librsvg2 urw-fonts
yum -y install php53 php53-common  php53-gd php53-mysql  php53-mbstring php53-process
yum -y install php53 php53-common  php53-gd php53-mysql  php53-mbstring php53-process


==MYSQL 5.6 (strongly recommended)==
==MYSQL 5.6 (strongly recommended)==
wget https://dev.mysql.com/get/mysql-community-release-el5-5.noarch.rpm --no-check-certificate
wget https://dev.mysql.com/get/mysql-community-release-el5-5.noarch.rpm --no-check-certificate
rpm -i mysql-community-release-el5-5.noarch.rpm
rpm -i mysql-community-release-el5-5.noarch.rpm
yum install mysql-community-server
yum install mysql-community-server
mysql_install_db
chown -R mysql:mysql /var/run/mysql
chown -R mysql:mysql /var/lib/mysql


===Tunning up mysql===
===Tunning up mysql===
vim /etc/my.cnf and prepares for database for start
Edit /etc/my.cnf
innodb_flush_log_at_trx_commit = 2
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
innodb_file_per_table = 1
innodb_file_format = barracuda
innodb_file_format = barracuda
innodb_buffer_pool_size = 8GB (!Set here aprox. half RAM available - based on free RAM you have)
innodb_buffer_pool_size = 8GB (!Set here aprox. half RAM available - based on free RAM you have)
mysql_install_db
 
chown -R mysql:mysql /var/run/mysql
Start mysql:
chown -R mysql:mysql /var/lib/mysql
service mysqld start
service mysqld start
mysql_secure_installation
mysql_secure_installation
mysqladmin create voipmonitor
mysqladmin create voipmonitor


==Sensor installation==
==Sensor installation==
mkdir /usr/src/voipmonitor
mkdir /usr/src/voipmonitor
cd /usr/src/voipmonitor
cd /usr/src/voipmonitor
wget https://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz
wget https://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz --no-check-certificate
tar xzf voipmonitor*
tar xzf voipmonitor*
cd voipmonitor*
cd voipmonitor*
./install-script.sh
./install-script.sh




==enabling services==
==enabling services==
chkconfig --add httpd
chkconfig --add httpd
chkconfig httpd on
chkconfig httpd on
/etc/init.d/httpd start
/etc/init.d/httpd start
chkconfig --add mysqld
chkconfig --add mysqld
chkconfig mysqld on
chkconfig mysqld on
/etc/init.d/mysqld start
/etc/init.d/mysqld start
 
==GUI Installation==
===First start sensor for create sensor's tables===
/etc/init.d/voipmonitor start


==GUI Installation GUI==
===Unpack GUI===
First start sensor for create sensor's tables
cd /var/www/html
/etc/init.d/voipmonitor start
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"


cd /var/www/html
===Install ioncube and restart web server===
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed&phpver=53" -O w.tar.gz
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
tar xzf w.tar.gz
echo "zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so" > /etc/php.d/01_ioncube.ini
mv voipmonitor-gui*/* ./
chown -R apache /var/www/html
rm -f index.html
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
mkdir /var/spool/voipmonitor/
setenforce 0
chown apache /var/spool/voipmonitor/
/etc/init.d/httpd restart
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

Latest revision as of 19:15, 7 March 2017

Note:Steps after fresh install centos 5.11 64bit from net install (no packages choosen during installation).


Upgrade and Install required packages

yum update
yum -y install wget httpd wireshark mtr librsvg2 urw-fonts
yum -y install php53 php53-common  php53-gd php53-mysql  php53-mbstring php53-process

MYSQL 5.6 (strongly recommended)

wget https://dev.mysql.com/get/mysql-community-release-el5-5.noarch.rpm --no-check-certificate
rpm -i mysql-community-release-el5-5.noarch.rpm
yum install mysql-community-server
mysql_install_db
chown -R mysql:mysql /var/run/mysql
chown -R mysql:mysql /var/lib/mysql

Tunning up mysql

Edit /etc/my.cnf

innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
innodb_file_format = barracuda
innodb_buffer_pool_size = 8GB (!Set here aprox. half RAM available - based on free RAM you have)

Start mysql:

service mysqld start
mysql_secure_installation
mysqladmin create voipmonitor

Sensor installation

mkdir /usr/src/voipmonitor
cd /usr/src/voipmonitor
wget https://www.voipmonitor.org/current-stable-sniffer-static-64bit.tar.gz --no-check-certificate
tar xzf voipmonitor*
cd voipmonitor*
./install-script.sh


enabling services

chkconfig --add httpd
chkconfig httpd on
/etc/init.d/httpd start
chkconfig --add mysqld
chkconfig mysqld on
/etc/init.d/mysqld start

GUI Installation

First start sensor for create sensor's tables

/etc/init.d/voipmonitor start

Unpack 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
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"

Install ioncube and restart web server

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