Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2019 03:54:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 238234] [new port] www/fusionpbx: fusionpbx 4.4.1 is a php7 webgui for freeswitch
Message-ID:  <bug-238234-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238234

            Bug ID: 238234
           Summary: [new port] www/fusionpbx: fusionpbx 4.4.1 is a php7
                    webgui for freeswitch
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: richard2891@gmail.com

Created attachment 204711
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204711&action=
=3Dedit
fusionpbx 4.4.1 a php7 webgui for freeswitch

new port of fusionpbx 4.4.1 a php7 webgui for freeswitch

installs fusionpbx 4.4.1 some additional setup are need after see blow.

#run freeswith under www user and group
sysrc memcached_enable=3D"YES"
sysrc freeswitch_enable=3D"YES"
sysrc freeswitch_flags=3D"-nc -nonat"
sysrc freeswitch_user=3D"www"
sysrc freeswitch_group=3D"www"

#copy the default conf directory
mkdir -p /usr/local/etc/freeswitch
cp -R /usr/local/www/fusionpbx/resources/templates/conf/*
/usr/local/etc/freeswitch

#copy the scripts
cp -R /usr/local/www/fusionpbx/resources/install/scripts
/usr/local/share/freeswitch

#default ownership
chown -R www:www /usr/local/etc/freeswitch
chown -R www:www /var/lib/freeswitch
chown -R www:www /usr/local/share/freeswitch
chown -R www:www /var/log/freeswitch
chown -R www:www /var/run/freeswitch

#install nginx or apache24 and mod_php72

#optinal install postgresql10
sysrc postgresql_enable=3D"YES"

/usr/local/etc/rc.d/postgresql initdb

sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data10 -l logfile
start

service postgresql restart

sudo -u postgres psql -c "DROP DATABASE fusionpbx;"
sudo -u postgres psql -c "DROP DATABASE freeswitch;"
sudo -u postgres psql -c "DROP ROLE fusionpbx;"
sudo -u postgres psql -c "DROP ROLE freeswitch;"

sudo -u postgres psql -c "CREATE DATABASE fusionpbx;"
sudo -u postgres psql -c "CREATE DATABASE freeswitch;"
sudo -u postgres psql -c "CREATE ROLE fusionpbx WITH SUPERUSER LOGIN PASSWO=
RD
'$DB_PASSWORD';"
sudo -u postgres psql -c "CREATE ROLE freeswitch WITH SUPERUSER LOGIN PASSW=
ORD
'$DB_PASSWORD';"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE fusionpbx to
fusionpbx;"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to
fusionpbx;"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE freeswitch to
freeswitch;"

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238234-7788>