Centos 6.3: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
./install-script.sh | ./install-script.sh | ||
mysqladmin create voipmonitor | mysqladmin create voipmonitor | ||
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" -O w.tar.gz | ||
Line 50: | Line 49: | ||
cd /usr/src/ | cd /usr/src/ | ||
wget http://sourceforge.net/projects/voipmonitor/files/ | wget http://sourceforge.net/projects/voipmonitor/files/6.5/voipmonitor-amd64-6.5.4-static.tar.gz | ||
tar xzf voipmonitor*.tar.gz | tar xzf voipmonitor*.tar.gz | ||
cd voipmonitor* | cd voipmonitor* | ||
Line 60: | Line 59: | ||
mysqladmin create voipmonitor | mysqladmin create voipmonitor | ||
Installing WEB GUI | Installing WEB GUI |
Revision as of 19:22, 21 May 2013
Fast 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 cd /usr/src/ wget http://sourceforge.net/projects/voipmonitor/files/6.5/voipmonitor-amd64-6.5.4-static.tar.gz tar xzf voipmonitor*.tar.gz cd voipmonitor* ./install-script.sh mysqladmin create voipmonitor cd /var/www/html wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&allowed" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ rm 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/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]
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 http://sourceforge.net/projects/voipmonitor/files/6.5/voipmonitor-amd64-6.5.4-static.tar.gz tar xzf voipmonitor*.tar.gz cd voipmonitor* ./install-script.sh 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" -O w.tar.gz tar xzf w.tar.gz mv voipmonitor-gui*/* ./ rm 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/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