Tahapan instalasi FusionPBX atau IPPBX Fusion di LXC Proxmox

Sebelum melakukan instalasi ada beberapa tahapan yang harus dibuat : 

Prasyarat Penting: Container Harus Privileged

FusionPBX, khususnya FreeSWITCH, membutuhkan kemampuan CAP_SYS_NICE untuk scheduling real-time. Kemampuan ini tidak tersedia di container unprivileged.

Langkah-langkahnya:

  1. Stop container terlebih dahulu.

  2. Buka file konfigurasi LXC Anda (misalnya, /etc/pve/lxc/[ID_container].conf) di editor.

  3. Lakukan dua perubahan berikut:

    • Ubah atau tambahkan baris unprivileged: 0 (nilai 0 berarti privileged).

    • Tambahkan baris lxc.apparmor.profile: unconfined untuk menonaktifkan pembatasan AppArmor.


Persiapan Awal dalam Container

Sebelum menjalankan skrip instalasi utama, Anda harus menginstall paket-paket dasar yang diperlukan.

Masuk ke console container dan jalankan perintah berikut:

    apt-get update && apt-get upgrade
    apt-get install systemd
    apt-get install systemd-sysv
    apt-get install ca-certificates
    reboot

Proses Instalasi

Setelah container reboot, jalankan perintah instalasi resmi satu per satu:

wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/debian/pre-install.sh | sh

cd /usr/src/fusionpbx-install.sh/debian && ./install.sh


Sebaiknya untuk install.sh dilakukan secara manual supaya meminimalisir kesalahan atau error pada saat installasi tiap package nya.


root@fs105:/usr/src/fusionpbx-install.sh/debian# cat install.sh 

#!/bin/sh

#move to script directory so all relative paths work

cd "$(dirname "$0")"

#includes

. ./resources/config.sh

. ./resources/colors.sh

. ./resources/environment.sh

# removes the cd img from the /etc/apt/sources.list file (not needed after base install)

sed -i '/cdrom:/d' /etc/apt/sources.list

#Update to the latest packages

verbose "Update installed packages."

apt-get update && apt-get upgrade -y

#Add dependencies

apt-get install -y wget

apt-get install -y lsb-release

apt-get install -y systemd

apt-get install -y systemd-sysv

apt-get install -y ca-certificates

apt-get install -y dialog

apt-get install -y nano

apt-get install -y net-tools

apt-get install -y gpg

apt-get install -y unzip

#SNMP

apt-get install -y snmpd

echo "rocommunity public" > /etc/snmp/snmpd.conf

service snmpd restart

#disable vi visual mode

echo "set mouse-=a" >> ~/.vimrc

#IPTables

resources/iptables.sh

#sngrep

resources/sngrep.sh

#PHP

resources/php.sh

#NGINX web server

resources/nginx.sh

#FusionPBX

resources/fusionpbx.sh

#Optional Applications

resources/applications.sh

#Fail2ban

resources/fail2ban.sh

#Postgres

resources/postgresql.sh

#FreeSWITCH

resources/switch.sh

#set the ip address

server_address=$(hostname -I)

#add the database schema, user and groups

resources/finish.sh


Thank you


Komentar