How to Install Freepbx on Linux Mint
In this tutorial, we will be learning how to install Freepbx on the latest version of Linux Mint.
Prerequisites
- A Linux Mint operating system
- A stable internet connection
- sudo access
Step 1: Update the System
Before starting the installation process, it is essential to update the system. To do that, run the following command in the terminal.
sudo apt update && sudo apt upgrade -y
This command will update the system and upgrade any outdated packages.
Step 2: Install Dependencies
Now we have to install the necessary dependencies for running Freepbx. Run the following command to install dependencies.
sudo apt install -y apache2 mariadb-server mariadb-client libapache2-mod-php7.4 php7.4-gd php-pear php7.4-curl 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 libasound2-dev libogg-dev libvorbis-dev libicu-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp-dev libspandsp-dev libmyodbc
Step 3: Install LAMP
To run Freepbx, we need to install LAMP(Linux, Apache, MySQL and PHP). Run the following command to install LAMP.
sudo apt install -y lamp-server^
This command will install LAMP and start the Apache and MySQL services.
Step 4: Download and Setup Freepbx
Now, we need to download and set up Freepbx on our system. Run the following command to install Freepbx.
sudo git clone -b release/15.0 https://github.com/freepbx/framework.git /usr/src/freepbx
After cloning the repository, change the directory to /usr/src/freepbx and run the following commands:
sudo ./start_asterisk start
sudo ./install -n
This will start the Asterisk service and start the installation process.
Step 5: Configure Firewall
By default, the Linux Mint computer will have a firewall enabled. We need to configure the firewall to allow traffic on ports 80 and 5060. Run the following commands to open the required ports.
sudo ufw allow 80/tcp
sudo ufw allow 5060/tcp
Step 6: Accessing Freepbx
The installation is complete. We can now access Freepbx through a web browser with the URL http://localhost/freepbx. Follow the prompt to create a new user and password.
Congratulations! You have successfully installed Freepbx on Linux Mint.