Ubuntu 12.04 LTS 2x ETH dedicated

From VoIPmonitor.org
Jump to navigation Jump to search
apt-get -y install php5-gd php5-mysql php5 php5-cli apache2 libapache2-mod-php5 tshark mtr mysql-server php5-mcrypt librsvg2-bin   
cd /usr/src/
wget http://sourceforge.net/projects/voipmonitor/files/6.5/voipmonitor-amd64-6.5.4-static.tar.gz /usr/src/
tar xzf voipmonitor*.tar.gz
cd voipmonitor*
./install-script.sh
mysqladmin create voipmonitor
cat cdrtable.sql | mysql voipmonitor
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
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/ioncube.ini
chown -R www-data /var/www
/etc/init.d/apache2 restart
wget http://voipmonitor.org/downloads/dedicated/interfaces-dhcp-eth0eth1 -O /etc/network/interfaces 
sed -i 's/interface = eth0/interface = any/' /etc/voipmonitor.conf
sed -i 's/#cleanspool_interval = 7200/cleanspool_interval = 86400/' /etc/voipmonitor.conf
sed -i 's/#cleanspool_size = 50000/cleanspool_size = 400000/' /etc/voipmonitor.conf
sed -i 's/filter = udp or (vlan and udp)/#filter = udp or (vlan and udp)/' /etc/voipmonitor.conf
echo "50 3 * * * root find /var/spool/voipmonitor/ -type d -empty -delete ; mkdir /var/spool/voipmonitor" >> /etc/crontab