FreePBX V3: Difference between revisions

From Alpine Linux
No edit summary
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
* Freepbx V3
* Freepbx V3
* Freeswitch
* Freeswitch
== Upgrading the installation ==
echo 'http://dl-3.alpinelinux.org/alpine/v2.6/main/' >  /etc/apk/repositories
apk upgrade -U


== Install lighttpd, PHP, subversion and postgresql ==
== 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 php-pdo_pgsql  php-soap php-xmlrpc php-posix php-mcrypt php-gettext subversion  postgresql postgresql-client
  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==
== Configuring Lighttpd==
Line 27: Line 33:
== Installing FreePBX ==
== Installing FreePBX ==


  cd /tmp
 
  svn co http://www.freepbx.org/v3/svn/trunk/ freepbx-v3/
Make webapps folder
mv freepbx-v3  /var/www/localhost/htdocs/freepbx
 
  cd  /var/www/localhost/htdocs/freepbx
mkdir /usr/share/webapps/ -p
 
Download
 
  cd /usr/share/webapps/
  svn co http://www.freepbx.org/v3/svn/trunk/ freepbx/
  cd  freepbx
  chmod 755 preinstall.sh
  chmod 755 preinstall.sh
  ./preinstall.sh
  ./preinstall.sh


'''Changing some permissions'''
Changing some permissions
 
chown lighttpd:lighttpd /usr/share/webapps/freepbx
chmod 777 -R /usr/share/webapps/freepbx
 
Make symlinks to Freepbx


  chown lighttpd:lighttpd /var/www/localhost/htdocs/freepbx
  ln -s /usr/share/webapps/freepbx/ /var/www/localhost/htdocs/freepbx
chmod 777 -R /var/www/localhost/htdocs/freepbx


== Installing FreeSwitch ==
== Installing FreeSwitch ==
Line 43: Line 59:
'''Installing Freeswitch '''
'''Installing Freeswitch '''


   apk add freeswitch freeswitch-flite freeswitch-sounds-en-us-callie-8000 freeswitch-sample-config -U -X http://build.alpinelinux.org:8009/backports/1.10/ --allow-untrusted
   apk add freeswitch freeswitch-flite freeswitch-sounds-en-us-callie-8000 freeswitch-sample-config


'''Changing some permissions'''
'''Changing some permissions'''
Line 56: Line 72:


  /etc/init.d/postgresql setup
  /etc/init.d/postgresql setup
  /etc/init.d/postgresql start && rc-update add postgresql default
  /etc/init.d/postgresql start  
  /etc/init.d/lighttpd start && rc-update add lighttpd default
/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


Browse  
Browse  
Line 83: Line 104:


EOF
EOF
[[Category:Telephony]]
[[Category:Server]]
[[Category:PHP]]
[[Category:SQL]]

Revision as of 14:02, 13 June 2013

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 'http://dl-3.alpinelinux.org/alpine/v2.6/main/' >  /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:

"mod_rewrite",
"mod_redirect",
include "mod_cgi.conf"

Installing FreePBX

Make webapps folder

mkdir /usr/share/webapps/ -p

Download

cd /usr/share/webapps/
svn co http://www.freepbx.org/v3/svn/trunk/ freepbx/
cd  freepbx
chmod 755 preinstall.sh
./preinstall.sh

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

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

Browse

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

And wait until the installer finish the installation

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

EOF