How to install FreePBX on Debian Latest
FreePBX is an open-source communication software for IP telephony. It is used to manage Asterisk PBX server, and it offers a graphical interface to configure and manage different features of a telephony system. This tutorial will show you how to install FreePBX on Debian Latest.
Prerequisites
Before you start, ensure that you have the following:
- A Debian Latest server (local or remote)
- A sudo user with root privileges
Step 1: Update the System
To ensure that your Debian system is up-to-date, run the following command:
sudo apt update && sudo apt upgrade -y
Step 2: Install Asterisk
FreePBX requires Asterisk PBX server to function. You can install Asterisk by running the following command:
sudo apt install asterisk -y
Step 3: Install Required Dependencies
You need to install some dependencies before installing FreePBX. Use the following command to install necessary dependencies:
sudo apt install apache2 mariadb-server mariadb-client libmariadbclient-dev libapache2-mod-php7.4 php7.4 php7.4-common php7.4-gd php7.4-mysql php7.4-mbstring php7.4-curl php7.4-cli php-pear curl sox libncurses5-dev libssl-dev mpg123 libxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git unixodbc-dev uuid uuid-dev libcurl4-openssl-dev -y
Step 4: Install FreePBX
Now, you can download and install the FreePBX package. Follow the commands below:
cd /usr/src
sudo wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz
sudo tar xvzf freepbx-15.0-latest.tgz
cd freepbx
sudo ./start_asterisk start
sudo ./install -n
Step 5: Configure Firewalld
If your firewall is enabled, you need to allow ports used by FreePBX. This ensures remote access to FreePBX.
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --zone=public --add-port=443/tcp --permanent
sudo firewall-cmd --zone=public --add-port=3306/tcp --permanent
sudo firewall-cmd --zone=public --add-port=5060-5061/udp --permanent
sudo firewall-cmd --zone=public --add-port=10000-20000/udp --permanent
sudo firewall-cmd --reload
Step 6: Access FreePBX
Once you have completed the above steps, you can access FreePBX using a web browser. Open your browser, and navigate to http://your-server-ip or http://your-server-domain. Replace your-server-ip or your-server-domain with the IP address or hostname of your server.
Conclusion
In this tutorial, you learned how to install FreePBX on Debian Latest. You can now configure and manage your IP telephony system through the graphical interface provided by FreePBX.