Installing FreePBX 12 on Ubuntu Server 14.10

 

 

 

Initial System Setup

When installing the machine, at package selection make sure you pick - at least - OpenSSH Server, and LAMP Server. You may install others, if wanted.

ubuntu-14.04-software-selection.png

 

Configure your root password.

sudo passwd root

Switch to the Root User

sudo -i

Update Your System

apt-get update && sudo apt-get upgrade -y 

Install Required Dependencies

Reboot server

This is to ensure you're running the kernel version that you're going to be building your kernel modules against. You may skip this step if you're sure your running kernel is the latest.

Install PearDB

Install and Configure Asterisk

Download Asterisk source files.

Compile and install DAHDI and LibPRI

If you don't have any physical hardware you don't need to run these commands, however, it is still suggested to compile the modules, to allow you to add hardware later.

Compile and install pjproject

Compile and Install jansson

Compile and install Asterisk

You will be prompted at the point to pick which modules to build. Most of them will be enabled, but if you want to have MP3 support, you need to manually turn on 'format_mp3' on the first page.

ubuntu-14.04-enable-mp3.png

 

After selecting 'Save & Exit' you can then continue

Install Asterisk-Extra-Sounds

Note that this installs the (8khz) 'wav' soundfiles and G722 (High Definition 'Wideband') audio.

Install and Configure FreePBX

Download and extract FreePBX.

Now create the Asterisk user and set ownership permissions.

A few small modifications to Apache.

Prepare MySQL

You now need to generate a secure password for FreePBX to use to talk to MySQL.

That will generate a quasi-random 16 character long password, which should be secure enough for most things.  If you had set the MySQL 'root' password to be something when you were installing the machine, you will need to add a -pyourpassword flag to the following lines

Configure Asterisk database in MYSQL. 

Set permissions on MYSQL database.

Restart Asterisk and install FreePBX.

Finally, one last mod and start FreePBX.

Start FreePBX

Navigate: 

Now FreePBX is installed, it will be available via Apache. Open up your web browser and visit:

    http://Address.Of.FreePBX.Server/admin

Return to Documentation Home I Return to Sangoma Support