FreePBX is an open-source GUI (Graphical User Interface) that controls and manages Asterisk, a powerful VoIP PBX system. This guide walks you through installing FreePBX on a dedicated server.
Prerequisites
Before installing FreePBX, ensure you have the following:
- A dedicated or virtual server (Recommended: 2+ CPU cores, 4GB RAM, 50GB storage)
- A fresh installation of CentOS 7 (or Rocky Linux 8/AlmaLinux 8 for newer versions)
- Root access to the server
- Stable internet connection
Step 1: Update Your System
Update the system packages before installing dependencies:
Step 2: Configure SELinux & Firewall
Set SELinux to permissive mode:
Allow FreePBX and Asterisk through the firewall:
Step 3: Install Required Packages
Install dependencies:
Install MariaDB, Apache, and PHP:
Secure MariaDB:
Follow the prompts to set a root password and secure your database.
Step 4: Install Asterisk
Download and compile Asterisk:
Enable necessary modules in the menu, then proceed with compilation:
Step 5: Install FreePBX
Download and install FreePBX:
Start FreePBX services:
Step 6: Access the Web Interface
- Open a web browser and go to http://your-server-ip
- Follow the setup wizard to configure FreePBX
Conclusion
You now have a fully functional FreePBX installation. Customize settings, configure SIP trunks, and set up extensions as needed. Regularly update your system for security and stability.
