Site icon Learning & Doing

Cara Install FreePBX pada AlmaLinux / CentOS 8 / Rocky Linux / Redhat 8

freepbx

“Cara Install FreePBX pada AlmaLinux / CentOS 8 / Rocky Linux / Redhat 8”

Pengantar

Namun, ada alat lain bernama FreePBX yang dapat membantu kita mengelola Asterisk dari antarmuka pengguna berbasis Web. Sama seperti Asterisk, FreePBX gratis dan opensource Anda dapat dengan mudah menginstalnya bersama instalasi Asterisk Anda. Kita akan melihat cara menginstal FreePBX di Rocky Linux 8. Anda harus sudah menginstal Asterisk dan Anda dapat merujuk ke panduan kami tentang cara menginstal Asterisk di Rocky Linux 8|AlmaLinux 8.

Install FreePBX pada AlmaLinux / CentOS 8 / Rocky Linux / Redhat 8

# Upgrade system
sudo dnf -y update

# Disable SELinux
sudo setenforce 0
sudo sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config

# Reboot system
sudo reboot
sudo dnf -y groupinstall  "Development Tools"
sudo dnf install -y @php wget ncurses-devel sendmail sendmail-cf newt-devel libxml2-devel libtiff-devel gtk2-devel subversion kernel-devel git crontabs cronie cronie-anacron wget vim php-xml sqlite-devel net-tools gnutls-devel unixODBC

sudo pear install Console_Getopt
sudo dnf install mariadb mariadb-server
sudo systemctl enable --now mariadb
sudo mysql_secure_installation
Set root password? [Y/n] n
New password: password
Re-enter new password: password
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
sudo dnf module install nodejs
#Install httpd
sudo dnf -y install @httpd

#remove default index.html page
sudo rm -f /var/www/html/index.html
sudo chown -R asterisk. /var/www/*

#Start httpd and  enable it to be starting automatically on system boot
sudo systemctl enable --now httpd
sudo dnf install -y wget @php php-pear php-cgi php-common php-curl php-mbstring php-gd php-mysqlnd php-gettext php-bcmath php-zip php-xml  php-json php-process php-snmp
sudo vi /etc/php.ini

upload_max_filesize = 20M
sudo systemctl restart php-fpm httpd
sudo systemctl enable php-fpm
sudo sed -i 's/\(^memory_limit = \).*/\156M/' /etc/php.ini
sudo sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/httpd/conf/httpd.conf
sudo sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
sudo sed -i 's/\(^user = \).*/\1asterisk/' /etc/php-fpm.d/www.conf
sudo sed -i 's/\(^group = \).*/\1asterisk/' /etc/php-fpm.d/www.conf
sudo sed -i 's/\(^listen.acl_users = apache,nginx\).*/\1,asterisk/' /etc/php-fpm.d/www.conf
sudo systemctl restart httpd
sudo systemctl restart php-fpm
cd /var/www/html
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz
tar xf freepbx-15.0-latest.tgz
cd freepbx
sudo ./start_asterisk start
sudo ./install -n
#or use this command if you have set root password for DB
sudo ./install -n --dbuser root --dbpass password
sudo systemctl restart httpd

Konfigurasi FreePBX

Buka Connectivity -> trunks -> Add trunk

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Cara Install FreePBX pada AlmaLinux / CentOS 8 / Rocky Linux / Redhat 8 . Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

Exit mobile version