Ubuntu 12.04 LTS: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
(Created page with "This will install sniffer and GUI and all neccessery packages on clean Ubuntu 12.04 LTS 64 bit version apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2...")
 
No edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This will install sniffer and GUI and all neccessery packages on clean Ubuntu 12.04 LTS 64 bit version


  apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin  
 
== 64 bit ==
 
  apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin gsfonts
  cd /usr/src/
  cd /usr/src/
  wget http://sourceforge.net/projects/voipmonitor/files/5.5/voipmonitor-amd64-5.5-static.tar.gz /usr/src/
  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 voipmonitor*
  ./install-script.sh
  ./install-script.sh
  mysqladmin create voipmonitor
  mysqladmin create voipmonitor
  cat cdrtable.sql | mysql voipmonitor
  # edit /etc/voipmonitor.conf and set appropriate mysql password
/etc/init.d/voipmonitor start
  cd /var/www
  cd /var/www
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&festry" -O w.tar.gz
  wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=53&festry" -O w.tar.gz
  tar xzf w.tar.gz
  tar xzf w.tar.gz
  mv voipmonitor-gui*/* ./
  mv voipmonitor-gui*/* ./
  rm index.html
  rm -f index.html
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
  mkdir /var/spool/voipmonitor/
  mkdir /var/spool/voipmonitor/
Line 22: Line 25:
  chmod +x "/var/www/bin/wkhtmltopdf-x86_64"
  chmod +x "/var/www/bin/wkhtmltopdf-x86_64"
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
  wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
  echo "zend_extension = /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so" > /etc/php5/apache2/conf.d/ioncube.ini
  echo "zend_extension = /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so" > /etc/php5/apache2/conf.d/01_ioncube.ini
chown -R www-data /var/www
/etc/init.d/apache2 restart
 
Explanation step by step
 
Installing packages - it will ask for mysql password - you can leave it blank or just notice it for later configuration
 
apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin
 
Installing sniffer
 
cd /usr/src/
wget http://sourceforge.net/projects/voipmonitor/files/5.5/voipmonitor-amd64-5.5-static.tar.gz /usr/src/
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
 
Creating database
 
mysqladmin create voipmonitor
cat cdrtable.sql | mysql voipmonitor
 
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/lib/php5/20090626/ioncube_loader_lin_5.3.so
echo "zend_extension = /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so" > /etc/php5/apache2/conf.d/ioncube.ini
 
Installing WEB GUI
 
cd /var/www
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm index.html
  chown -R www-data /var/www
  chown -R www-data /var/www
  /etc/init.d/apache2 restart
  /etc/init.d/apache2 restart


Installing wkhtmltopdf binaries needed for GUI charts and reprots
Now go to http://yourserver/ and finish the installation (you need the key from [http://www.voipmonitor.org/download-gui?version=license]
 
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so

Latest revision as of 19:25, 7 March 2017


64 bit

apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin gsfonts
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
mysqladmin create voipmonitor
# edit /etc/voipmonitor.conf and set appropriate mysql password
/etc/init.d/voipmonitor start
cd /var/www
wget "http://www.voipmonitor.org/download-gui?version=latest&major=5&phpver=53&festry" -O w.tar.gz
tar xzf w.tar.gz
mv voipmonitor-gui*/* ./
rm -f index.html
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
mkdir /var/spool/voipmonitor/
chown www-data /var/spool/voipmonitor/
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltoimage-x86_64 -O "/var/www/bin/wkhtmltoimage-x86_64"
chmod +x "/var/www/bin/wkhtmltoimage-x86_64"
wget http://sourceforge.net/projects/voipmonitor/files/wkhtml/0.10.0_rc2/wkhtmltopdf-x86_64 -O "/var/www/bin/wkhtmltopdf-x86_64"
chmod +x "/var/www/bin/wkhtmltopdf-x86_64"
wget http://voipmonitor.org/ioncube/x86_64/ioncube_loader_lin_5.3.so -O /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
echo "zend_extension = /usr/lib/php5/20090626/ioncube_loader_lin_5.3.so" > /etc/php5/apache2/conf.d/01_ioncube.ini
chown -R www-data /var/www
/etc/init.d/apache2 restart

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