How To Install FreePBX Server On Ubuntu 14.0410 min read
Deploy asterisk FreePBX server on ubuntu 14.04. FreePBX is an open source ip telephony system provided by sangoma. Create virtual machine with some configuration such as memory 2GB, RAM 2GB and harddisk 20GB.
Then install ubuntu 14.04 on your virtual machine. First install FreePBX 12 then upgrade to FreePBX 13
★ How To Setup CHAN SIP Trunk
★ How To Monitor Linux Server From Zabbix Server
Step #01: FreePBX system update and upgrade needed.
[email protected]:~# apt-get update && apt-get upgrade
Step #02: Now install some required packages like as php. mysql and git.
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 automake 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
During installation, you need to set a password for the MySQL. In my case I set a password “passw0rd”
Now create asterisk user and asterisk database with all grant privileges.
[email protected]:~# mysql -uroot -ppassw0rd
show as like below
Step #03: Create asterisk database.
mysql > create database asterisk; mysql > grant all privileges on asterisk.* to [email protected] identified by 'passw0rd'; mysql > create database asteriskcdrdb; mysql > grant all privileges on asteriskcdrdb.* to [email protected] identified by 'passw0rd'; mysql > flush privileges; mysql > exit;
Peer uninstall DB
ro[email protected]:~# pear uninstall db
Peer Install DB
[email protected]:~# pear install db-1.7.14
Step #04: Goto cd /usr/src and download FreePBX required packages.
[email protected]:/usr/src# wget -c https://src.fedoraproject.org/lookaside/pkgs/iksemel/iksemel-1.4.tar.gz/md5/532e77181694f87ad5eb59435d11c1ca/iksemel-1.4.tar.gz
Now extract and step by step follow command
[email protected]:/usr/src# tar xf iksemel-1.4.tar.gz
[email protected]:/usr/src# cd iksemel-1.4/
[email protected]:/usr/src/iksemel-1.4# ./configure
[email protected]:/usr/src/iksemel-1.4# make
[email protected]:/usr/src/iksemel-1.4# make install
Step #05: Goto cd ../ for previous directory.
[email protected]:/usr/src/iksemel-1.4# cd ../ [email protected]:/usr/src# wget -c http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-12.8.2.tar.gz [email protected]:/usr/src# git clone https://github.com/akheron/jansson.git [email protected]:/usr/src# git clone https://github.com/asterisk/pjproject.git
Goto pjproject folder and run below command step by step
[email protected]:/usr/src# cd pjproject [email protected]:/usr/src/pjproject# ./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr [email protected]:/usr/src/pjproject# make dep [email protected]:/usr/src/pjproject# make [email protected]:/usr/src/pjproject# make install
Step #06: Goto cd ../ for previous directory then run one by one command
[email protected]:/usr/src/pjproject# cd ../jansson [email protected]:/usr/src/jansson/# autoreconf -i [email protected]:/usr/src/jansson/# ./configure [email protected]:/usr/src/jansson/# make [email protected]:/usr/src/jansson/# make install
Step #07: Goto cd ../ for previous directory.
[email protected]:/usr/src/pjproject# cd ../ [email protected]:/usr/src# tar xf asterisk-12.8.2.tar.gz [email protected]:/usr/src/jansson/# cd asterisk-12.8.2/ [email protected]:/usr/src/asterisk-12.8.2# ./configure [email protected]:/usr/src/asterisk-12.8.2# contrib/scripts/get_mp3_source.sh [email protected]:/usr/src/asterisk-12.8.2# make menuselect
Select format mp3 on the right tab see image below
[email protected]:/usr/src/asterisk-12.8.2# make [email protected]:/usr/src/asterisk-12.8.2# make install [email protected]:/usr/src/asterisk-12.8.2# ldconfig
Step #08: Download sound package.
[email protected]:/usr/src/asterisk-12.8.2# cd /var/lib/asterisk/sounds/
Then extract and remove downloaded file
[email protected]:/var/lib/asterisk/sounds# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-wav-current.tar.gz [email protected]:/var/lib/asterisk/sounds# tar xf asterisk-extra-sounds-en-wav-current.tar.gz [email protected]:/var/lib/asterisk/sounds# rm -rf asterisk-extra-sounds-en-wav-current.tar.gz
Step #09: Download FreePBX web gui and added some permission.
[email protected]:/var/lib/asterisk/sounds# cd /mnt [email protected]:/mnt# wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-12.0-latest.tgz [email protected]:/mnt# tar xf freepbx-12.0-latest.tgz [email protected]:/mnt# useradd -m asterisk [email protected]:/mnt# chown asterisk. /var/run/asterisk [email protected]:/mnt# chown -R asterisk. /etc/asterisk [email protected]:/mnt# chown -R asterisk. /var/{lib,log,spool}/asterisk [email protected]:/mnt# chown -R asterisk. /usr/lib/asterisk [email protected]:/mnt# chown asterisk /var/lib/php5/ [email protected]:/mnt# chown asterisk.asterisk /var/lib/php5/ [email protected]:/mnt# rm -rf /var/www/html
Step #10: Increase upload maximum size and add asterisk use and group.
upload_max_filesize=120M and add User asterisk, Group asterisk
[email protected]:# vi /etc/apache2/apache2.conf
Goto line number 109 and 110 insert below lines
User asterisk Group asterisk
See my video for upload file size, add user and group
Step #11: Goto mysql terminal and import FreePBX asterisk and asteriskcdrdb databases.
When database import then ask mysql database password and type here.
[email protected]:/mnt# cd freepbx/SQL/ [email protected]:/mnt/freepbx/SQL# mysql -u root -p asterisk < newinstall.sql [email protected]:/mnt/freepbx/SQL# mysql -u root -p asteriskcdrdb < cdr_mysql_table.sql
Step #12: Now install FreePBX web gui.
[email protected]:/mnt/freepbx/SQL# cd ../ [email protected]:/mnt/freepbx# ./start_asterisk start [email protected]:/mnt/freepbx$ ./install_amp
Then important asterisk user, asterisk DB password and IP address then proceed.
Database engine [mysql]: Enter
Database name [asterisk]: Enter
CDR Database name [asteriskcdrdb]: Enter
Database username [root]: Enter
Database password: type your password here
File owner user [asterisk]: Enter
File owner group [asterisk]: Enter
Filesystem location from which FreePBX files will be sarved [/var/www/html: Enter
At this time please restart asterisk.
Now your server reboot and start asterisk
[email protected]:/mnt/freepbx/SQL# reboot
Now got your browser and type your FreePBX server ip address then create admin user for login web GUI.
http://10.66.51.10/admin/
Prepare login credential using created user name and password.
Troubleshooting
Client denied by server configuration: /var/www/html/admin/
If face any problem then see my YouTube video and Subscribe my channel. Please subscribe my channel for more update.
- How To Install GitLab CE on Ubuntu 22.04 - December 15, 2022
- 7 Things to Know About Laptop Internet Cards - October 26, 2022
- How To Install iRedmail Mail Server On Ubuntu 22.04 Server - August 22, 2022
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!