How to install Elastix on a VPS with loop devices (eg XEN,KVM)

Written by admin on January 12, 2015. Posted in Elastix

This procedure is based on a Xen VPS with loop devices enabled but can be followed also on a KVM installation of Centos 5.

What will be installed?

Elastix -2.4.0 with..

Freepbx 2.8

Asterisk 1.8

A2Billing 1.9.4

 

Login via ssh or console.

Create directory tmp

# mkdir tmp
# cd tmp

Download the asterisk cd for your system into tmp folder. I used centos 64 bit

#  wget copy and paste this link
# yum -y update

# rpm -ivh ftp://mirror.cs.princeton.edu/pub/mirrors/fedora-epel/5/i386/epel-release-5-4.noarch.rpm

if this does not work use the following

# rpm -ivh http://ftp.riken.jp/Linux/fedora/epel//5/i386/epel-release-5-4.noarch.rpm

Add some packages
# yum -y install sysstat fail2ban bwm-ng system-config-securitylevel-tui python-setuptools

Mount the CD

# mkdir /mnt/iso
mount -o loop Elastix-2.4.0-Stable-x86_64-bin-04feb2013.iso /mnt/iso
cd /mnt/iso

Create yum repo for the CD
# nano /etc/yum.repos.d/elastix-cd.repo

Copy and paste the following into the file

[elastix-cd]
name=Elastix RPM Repo CD
baseurl=file:///mnt/iso/
gpgcheck=0
enabled=1

Press Ctrl X to save and answer Y to exit

# yum -y install elastix*

Upgrade a2billing otherwise calls will not be passed to a2billing by elastix pbx This will upgrade a2billing to 1.9.4-5
# yum install elastix-a2billing

Once that completes we will want to reboot.

#reboot

After reboot perform first boot configurations by entering required login passwords

# /etc/rc3.d/S66elastix-firstboot start

# reboot

Remove Disk Repo otherwise Webmin will not install
# rm /etc/yum.repos.d/elastix-cd.repo
# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.610-1.noarch.rpm
# rpm -U webmin-1.610-1.noarch.rpm
Access webmin by going to  http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.
Set up your webmin and make sure Bind is running
You can put back your repo if you want it may help when you want to install further addons. Please do not put this back before you install bind otherwise bind installation will fail.

Create yum repo for the CD
# nano /etc/yum.repos.d/elastix-cd.repo

Copy and paste the following into the file
[elastix-cd]
name=Elastix RPM Repo CD
baseurl=file:///mnt/iso/
gpgcheck=0
enabled=1

Configure your Domain
Link to how to configure domain. Do not update via webmin.

Login to your elastix by visiting https://yourdomain.whatever
Username Admin
Password  is the one you set it via console during installation.
You are done now you can configure your Elastix following Elastix without tears guide.