Installing FreePBX 12 on Ubuntu Server 14.04 LTS



Similar documents
LABORATORIUM 1 Setup and basic configuration of Asterisk BPX on Linux

Ruby on Rails (Ruby 1.9.2, Rails 3.1.1) Installation

Cloud Homework instructions for AWS default instance (Red Hat based)

LAMP Quickstart for Red Hat Enterprise Linux 4

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Installing an open source version of MateCat

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Installation Guide for AmiRNA and WMD3 Release 3.1

Installation documentation for Ulteo Open Virtual Desktop

Installing Booked scheduler on CentOS 6.5

Ulteo Open Virtual Desktop Installation

OS Installation: CentOS 5.8

Network Monitoring Lab

OpenGeo Suite for Linux Release 3.0

SETTING UP A LAMP SERVER REMOTELY

Integrating Apache Web Server with Tomcat Application Server

Using Cacti To Graph MySQL s Metrics

Installing and Configuring MySQL as StoreGrid Backend Database on Linux

GroundWork Monitor Open Source Installation Guide

Rancid Server Build and Operation Overview (v0.3) (This is being done from memory so expect some errors)

Table of Contents. Overview Features Applications Hardware requirement Card dimensions Software Installation...

StoreGrid Backup Server With MySQL As Backend Database:

The Build Process. of (GNU Tools for ARM Embedded Processors)

Medooze MCU Video Multiconference Server Installation and configuration guide Ubuntu LTS

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

Linux Terminal Server Project

Monitoring Netflow with NFsen

ALERT installation setup

SNPsyn documentation. Release 1.1b. Tomaž Curk Gregor Rot Davor Sluga Uroš Lotrič Blaž Zupan

Advantech AE Technical Share Document

Installation. Installation centreon + nagios mai LISTE DES PRE-REQUIS. Nagios/centreon Paquets divers. 1.1.

Extending Remote Desktop for Large Installations. Distributed Package Installs

CN=Monitor Installation and Configuration v2.0

CPE111 COMPUTER EXPLORATION

itixi Ubuntu Server Deployment How-To/Information

ULTEO OPEN VIRTUAL DESKTOP UBUNTU (PRECISE PANGOLIN) SUPPORT

inforouter V8.0 Server Migration Guide.

Suricata Performance White Paper

Recommended File System Ownership and Privileges

Snort Installation - Ubuntu FEUP. SSI - ProDEI Paulo Neto and Rui Chilro. December 7, 2010

EZcast Installation guide

Hardening web application (DOS and Application firewalls. Margus Ernits

VoIP monitor sniffer manual

Project management integrated into Outlook

Installation Instructions

Raspberry Pi Webserver

Partek Flow Installation Guide

Create a virtual machine at your assigned virtual server. Use the following specs

INASP: Effective Network Management Workshops

Kultra Ubuntu Install

Network Management & Monitoring Request Tracker (RT) Installation and Configuration

Back Up Linux And Windows Systems With BackupPC

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

Installing Dspace 1.8 on Ubuntu 12.04

VERSION 9.02 INSTALLATION GUIDE.

Creating a DUO MFA Service in AWS

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

How To Install Amyshelf On Windows 2000 Or Later

Introduction to CloudScript

ABS Manual Installation Guide

Procedure to Create and Duplicate Master LiveUSB Stick

RHadoop Installation Guide for Red Hat Enterprise Linux

See the installation page

Asterisk SIP Trunk Settings - Vestalink

Massey University Follow Me Printer Setup for Linux systems

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

Mercury Users Guide Version 1.3 February 14, 2006

Embedded Based Web Server for CMS and Automation System

Tonido Cloud Admin Guide

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

Contents. 1. Infrastructure

RHadoop and MapR. Accessing Enterprise- Grade Hadoop from R. Version 2.0 (14.March.2014)

Cassandra Installation over Ubuntu 1. Installing VMware player:

Support ovirt on Ubuntu

CDH installation & Application Test Report

CC ICT-SUD. Setting up and integrate Apache, MySQL and PHP on a Linux system

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Installing OptiRain Open on Macintosh OS X 10.6 (Snow Leopard)

OpenEMR Appliance Manual

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

Network Management & Monitoring

Deploy the ExtraHop Discover Appliance with Hyper-V

Getting Started With! CGminer/BFGminer!

Witango Application Server 6. Installation Guide for OS X

OpenCATS Documentation

TAO Installation Guide v0.1. September 2012

insync Installation Guide

Cacti The ULTIMATE Management Solution

System and Network Monitoring With Zabbix

StoreGrid Backup Server With MySQL As Backend Database:

Step By Step Guide for Starting "Hello, World!" on OpenWRT

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

IMPLEMENTATION OF CIPA - PUDUCHERRY UT SERVER MANAGEMENT. Client/Server Installation Notes - Prepared by NIC, Puducherry UT.

Sugar Open Source Installation Guide. Version 4.5.1

Apache and Virtual Hosts Exercises

Transcription:

Installing FreePBX 12 on Ubuntu Server 14.04 LTS Initial System Setup Configure your root password. Switch to the Root User Update Your System Install Required Dependencies Reboot server Install Dependencies for Google Voice (if required) Install iksemel Install and Configure Asterisk Download Asterisk source files. Compile and install DAHDI. Compile and install LIBPRI. Compile and install pjproject Compile and Install jansson Compile and install Asterisk Install Asterisk-Extra-Sounds Install and Configure FreePBX Download and extract FreePBX. Now create the Asterisk user and set ownership permissions. A few small modifications to Apache. Configure ODBC Prepare MySQL 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: Initial System Setup When installing the machine, at package selection sure you pick - at least - OpenSSH Server, and 'LAMP Packages'. This installs the base packages required. Configure your root password. sudo passwd root Switch to the Root User

Please note: THIS IS IMPORTANT! You must run the entire process as root. Attempting to use 'sudo' later on will not work. Please don't ignore this. You must run this command to switch to an interactive root shell. sudo -i Update Your System apt-get update && apt-get upgrade -y Install Required Dependencies apt-get install -y build-essential linux-headers-`uname -r` openssh-server apache2 mysql-server\ mysql-client bison flex php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox\ libncurses5-dev libssl-dev libmysqlclient-dev mpg123 libxml2-dev libnewt-dev sqlite3\ libsqlite3-dev pkg-config auto libtool autoconf git subversion unixodbc-dev uuid uuid-dev\ libasound2-dev libogg-dev libvorbis-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp0-dev\ libspandsp-dev libmyodbc Reboot server reboot Install Dependencies for Google Voice (if required) You may skip this section if you do not require Google Voice support. Install iksemel https://iksemel.googlecode.com/files/iksemel-1.4.tar.gz tar xf iksemel-1.4.tar.gz cd iksemel-*./configure

Install and Configure Asterisk Download Asterisk source files. http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-lin ux-complete-current.tar.gz http://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.t ar.gz git clone https://github.com/akheron/jansson.git git clone https://github.com/asterisk/pjproject.git Compile and install DAHDI. If you don't have any physical hardware you don't need to run these commands tar xvfz dahdi-linux-complete-current.tar.gz cd dahdi-linux-complete-* all config Compile and install LIBPRI. If you don't have any physical hardware you don't need to run these commands tar xvfz libpri-current.tar.gz cd libpri-* Compile and install pjproject

/pjproject./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr dep Compile and Install jansson /jansson autoreconf -i./configure Compile and install Asterisk tar xvfz asterisk-12-current.tar.gz cd asterisk-*./configure contrib/scripts/get_mp3_source.sh menuselect 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. After selecting 'Save & Exit' you can then continue

config ldconfig Install Asterisk-Extra-Sounds Note that this installs the (8khz) 'wav' soundfiles. If you're planning on running G722 (High Definition 'Wideband') audio, you also want to download the 722 codec pack, which is the second part. If you're not planning on using Wideband, you can skip that part. cd /var/lib/asterisk/sounds http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-e n-wav-current.tar.gz tar xfz asterisk-extra-sounds-en-wav-current.tar.gz rm -f asterisk-extra-sounds-en-wav-current.tar.gz # Wideband Audio download http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-e n-g722-current.tar.gz tar xfz asterisk-extra-sounds-en-g722-current.tar.gz rm -f asterisk-extra-sounds-en-g722-current.tar.gz Install and Configure FreePBX Download and extract FreePBX. http://mirror.freepbx.org/modules/packages/freepbx/freepbx-12.0-latest.tgz tar vxfz freepbx-12-latest.tgz cd freepbx Now create the Asterisk user and set ownership permissions. useradd -m asterisk chown asterisk. /var/run/asterisk chown -R asterisk. /etc/asterisk chown -R asterisk. /var/{lib,log,spool}/asterisk chown -R asterisk. /usr/lib/asterisk rm -rf /var/www/html A few small modifications to Apache.

sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php5/apache2/php.ini cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig sed -i 's/^\(user\ Group\).*/\1 asterisk/' /etc/apache2/apache2.conf service apache2 restart Configure ODBC Edit /etc/odbcinst.ini and add the following. Note that this command assumes you are installing to a new machine, and that the file is empty. If this is not a freshly installed machine, please manually verify the contents of the file, rather than just copying and pasting the lines below. The 'EOF' does no go in the file, it simply signals to the 'cat' command that you have finished pasting. cat >> /etc/odbcinst.ini << EOF [MySQL] Description = ODBC for MySQL Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmys.so FileUsage = 1 EOF You may need to verify these paths, if you're not on a x86_64 machine. You can use the command `find / -name libmyodbc.so` to verify the location Edit or create /etc/odbc.ini and add the following section. Note that, again, this command assumes you are installing to a new machine, and the file is empty. Please manually verify the contents of the files if this is not the case. cat >> /etc/odbc.ini << EOF [MySQL-asteriskcdrdb] Description=MySQL connection to 'asteriskcdrdb' database driver=mysql server=localhost database=asteriskcdrdb Port=3306 Socket=/var/run/mysqld/mysqld.sock option=3 EOF Prepare MySQL You now need to generate a secure password for FreePBX to use to talk to MySQL. export ASTERISK_DB_PW=`dd if=/dev/urandom bs=1 count=32 2>/dev/null base64 - cut -c2-18` 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 -p yourpassword flag to the following lines

Configure Asterisk database in MYSQL. mysqladmin -u root create asterisk mysqladmin -u root create asteriskcdrdb Set permissions on MYSQL database. mysql -u root -e "GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';" mysql -u root -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';" mysql -u root -e "flush privileges;" Restart Asterisk and install FreePBX../start_asterisk start./install_amp --installdb --username=asteriskuser --password=${asterisk_db_pw} amportal chown amportal a ma installall amportal a reload amportal a ma refreshsignatures amportal chown Finally, one last mod and start FreePBX. ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3 amportal restart 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