Skip to content

Install Zero Reporting on Ubuntu

Thyda-Eng edited this page Sep 1, 2017 · 2 revisions

Manually

  • Now it's time to install the required packages:
sudo apt-get install ruby1.9.3 apache2 asterisk erlang erlang-dev mercurial git mailutils  libxml2-dev 
libxslt1-dev mysql-server libmysqlclient-dev lame sox libsox-fmt-mp3 nodejs libcurl4-openssl-dev
apache2-threaded-dev libapr1-dev libaprutil1-dev libyaml-dev postfix festival libzmq3-dev
  • Install ruby

You can have vary options to install ruby with RVM or rbenv. But here I decide to show you the installation with rbenv, which is popular ruby package manager.

cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install -v 2.4.1
rbenv global 2.4.1
echo "gem: --no-document" > ~/.gemrc
  • Install Ruby Bundler:
gem install bundler
  • Passenger

Install Passenger module and enable in Apache doing:

sudo gem install rack -v=1.6.4 
sudo gem install passenger --no-ri --no-rdoc
sudo passenger-install-apache2-module -a
sudo sh -c 'passenger-install-apache2-module --snippet > /etc/apache2/mods-available/passenger.load'
sudo a2enmod passenger
  • Setting up Zero Reporting ****Clone the Verboice sources into /opt/verboice:
#!bash
cd /opt
git clone https://github.com/instedd/verboice.git --branch stable
  • Creating database
#!bash
mysql -uroot 
create database zero_reporting;
create user ‘zeroreporting’@'localhost';
grant all on zero_reporting.* to ‘zeroreporting’@'localhost';
Exit
  • Configure Edit the default Apache website file located at /etc/apache2/sites-enabled/000-default:
<VirtualHost *:80>
  DocumentRoot /var/www/zero-reporting/current/public
  <Directory /var/www/zero-reporting/current/public>
     Allow from all
     Options -MultiViews
     Require all granted
  </Directory>
</VirtualHost>
  • Start Verboice Services That's all! Verboice services must now be started:
#!bash
sudo start verboice

Clone this wiki locally