How to Install FreePBX on MXLinux

FreePBX is a web-based open-source GUI (graphic user interface) that controls and manages Asterisk (PBX software). MXLinux is a lightweight, stable, and easy-to-use GNU/Linux distribution, favored by users who want an operating system that runs on old hardware or machines with lower system specifications. This tutorial will guide you through the process of installing FreePBX on MXLinux.

Prerequisites

Step 1: Preparing Your System

Before installing FreePBX, it would be best if you updated your system to have the latest packages. Open the terminal, log in with root privileges, and perform an update of your distribution.

sudo apt update
sudo apt upgrade

Verify that the system upgrade is successful before continuing.

Step 2: Adding Third-Party Repositories

Next, you need to add the third-party repositories for FreePBX. Open the terminal and run the following commands:

cd /usr/src
wget http://packages.asterisk.org/centos/7/current/x86_64/RPMS/asterisk-version_variable-dahdi-version_variable.current.x86_64.rpm
wget http://packages.asterisk.org/centos/7/current/x86_64/RPMS/asterisk-version_variable-dahdi-version_variable-devel-version_variable.current.x86_64.rpm
wget http://packages.asterisk.org/centos/7/current/x86_64/RPMS/asterisk-version_variable-dahdi-version_variable-debuginfo.current.x86_64.rpm
mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-version_variable.tar.gz

Replace version_variable with your desired version.

After downloading the necessary packages, run the following command to install them.

rpm -ivh /usr/src/asterisk-version_variable.rpms/*.rpm

Step 3: Installing FreePBX

You need to install the package dependencies required for FreePBX. Open the terminal and run the following commands:

sudo apt install -y lksctp-tools libpear-php *php* php-mysql php-xml php-curl php-pear php-mbstring curl dirmngr libapache2-mod-php

After the installation of the package dependencies, run the following command to download and install FreePBX.

cd /usr/src
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-version_variable.tar.gz

Replace version_variable with your desired version.

Extract the downloaded package and change the directory.

tar -zxf freepbx-version_variable.tar.gz
cd freepbx
./start_asterisk start
./install -n

The installation will take a few minutes to complete. Verify that the installation is successful by running the following command in the terminal.

fwconsole --version

Step 4: Configuring FreePBX

After the successful installation of FreePBX, you need to configure the settings before accessing it through the web browser. Open the terminal and run the following commands:

fwconsole chown
fwconsole ma refreshsignatures
fwconsole reload

After running the above commands, point your web browser to http://localhost/freepbx/admin/config.php and follow the prompts to configure the FreePBX GUI.

Conclusion

In this tutorial, you have learned how to install and configure FreePBX on MXLinux. You can explore the features of FreePBX and configure your own PBX system with ease. If you have any questions, feel free to visit the FreePBX support community forum.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!