FreePBX is an open source software that provides a web-based graphical user interface (GUI) for managing and controlling Asterisk (PBX) systems. In this tutorial, we will show you how to install FreePBX on the latest version of nixOS.
Before proceeding with the installation of FreePBX, make sure your nixOS system is up-to-date by running the following commands:
sudo nix-channel --update
sudo nixos-rebuild switch
sudo reboot now
FreePBX requires several dependencies to be installed on nixOS. We will install them using the nix package manager. Run the following commands to install the dependencies:
sudo nix-env -i \
asterisk dahdi dahdi-tools \
libedit libxml2 libxslt ncurses \
php php-fpm php-gd php-mbstring php-mysqlnd \
php-pear php-process php-xmlrpc \
sqlite
After installing the dependencies, we can proceed to install FreePBX. Run the following commands to download and install the latest FreePBX version:
sudo mkdir /usr/src/freepbx
sudo chown $USER:$USER /usr/src/freepbx
cd /usr/src/freepbx
git clone https://github.com/FreePBX/framework.git freepbx
cd freepbx
git checkout release/15.0
sudo ./install -n
Note: The last command takes some time to complete.
Once the installation is complete, we need to configure FreePBX by running the following command:
sudo fwconsole chown
This command changes the ownership of the FreePBX files to the asterisk user.
After the configuration, we can start FreePBX by running the following command:
sudo fwconsole start
This command starts the FreePBX service and takes us to the FreePBX web interface at http://localhost:80.
After starting the FreePBX service, we can access the web interface using a web browser. Open a web browser and enter http://localhost:80
in the address bar. You will be prompted to enter a username and password for the FreePBX web interface.
In this tutorial, we have shown you how to install FreePBX on the latest version of nixOS. We have also seen how to configure and start the FreePBX service, and how to access the web interface. You are now ready to start using FreePBX for managing and controlling your Asterisk PBX systems.
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!