FreePBX V3

From Alpine Linux
Jump to: navigation, search

Set up Freepbx V3 on Alpine Linux

This document will be a quick c/p guide to setup freepbx v3 (freeswitch support) on Alpine linux. What we will setup is the following:

  • Lighttpd with PHP
  • Postgresql
  • Freepbx V3
  • Freeswitch

Upgrading the installation

echo '' >  /etc/apk/repositories
apk upgrade -U

Install lighttpd, PHP, subversion and postgresql

apk add lighttpd php php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap php-pdo 
apk add php-pdo_pgsql  php-soap php-xmlrpc php-posix php-mcrypt php-gettext subversion  postgresql postgresql-client

Configuring Lighttpd

Edit lighttpd.conf

nano /etc/lighttpd/lighttpd.conf

Uncomment three this lines:

include "mod_cgi.conf"

Installing FreePBX

Make webapps folder

mkdir /usr/share/webapps/ -p


cd /usr/share/webapps/
svn co freepbx/
cd  freepbx
chmod 755

Changing some permissions

chown lighttpd:lighttpd /usr/share/webapps/freepbx
chmod 777 -R /usr/share/webapps/freepbx

Make symlinks to Freepbx

ln -s /usr/share/webapps/freepbx/ /var/www/localhost/htdocs/freepbx

Installing FreeSwitch

Installing Freeswitch

  apk add freeswitch freeswitch-flite freeswitch-sounds-en-us-callie-8000 freeswitch-sample-config

Changing some permissions

chown lighttpd:lighttpd /etc/freeswitch/	
chmod 777 -R /etc/freeswitch/


Starting http and sql server and adding to boot

/etc/init.d/postgresql setup
/etc/init.d/postgresql start 
/etc/init.d/freeswitch start 
/etc/init.d/lighttpd start 
rc-update add freeswitch default
rc-update add postgresql default
rc-update add lighttpd default


Accept Terms and Conditions
Select pqsl as database server, freepbx as database name, postgres as user, no password
Set System Defaults 
Create Main Administrator
Set the Conf Directory: to: /etc/freeswitch
In the Packages page select the packages you want to install
Ready to Install

And wait until the installer finish the installation

When Installation Complete,click on: Click here to use FreePBX 3.0!