Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
Blog

What Is FreePBX and How to Self-Host FreePBX 17 on a VPS

FreePBX is the web management layer for Asterisk. This guide explains the Debian 12 VPS requirements, installation script, networking, security, sizing and migration decisions for self-hosting FreePBX 17.
Length12 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FreePBX is a web-based, GPL-licensed management interface for the Asterisk PBX engine. It lets you administer an internet-based phone system from a browser while Asterisk handles the underlying call processing. FreePBX 17 is the current Debian-based release described by the project, and its documented cloud installation path uses a fresh Debian 12 server.

You can self-host FreePBX 17 on a VPS, but the official minimum is only a starting point: at least 2 GB of RAM and 20 GB of disk. Recordings, conferencing, transcoding, backups, monitoring and call volume can require more. The normal VPS workflow is to provision Debian 12, run the official sng_freepbx_debian_install.sh installer with administrative access, wait roughly 30 minutes or longer, then finish setup in a browser.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What FreePBX is

FreePBX is not a replacement for Asterisk. It is the browser-based control layer that configures and manages an Asterisk-based private branch exchange (PBX). Asterisk remains the telephony engine: it processes calls and connects the system to phones, trunks and other services. FreePBX supplies the web interface and modular configuration system so administrators do not have to build every PBX setting by editing text files.

The project describes FreePBX as a completely modular GUI for Asterisk written in PHP and JavaScript. It is released under the GNU General Public License, while some optional modules and support offerings are commercial. FreePBX 17 is built around Debian rather than being a generic installer intended equally for every Linux distribution.

#1 Best Overall
Sale
Ooma Telo VoIP Free Internet Home Phone Service with 3 HD3 Handsets
  • Ooma has been rated the top phone service by Consumer Reports.

FreePBX and Asterisk have different jobs

  • FreePBX: the web administration and configuration layer.
  • Asterisk: the PBX engine that performs the telephony work.
  • Debian: the operating-system foundation on which the supported FreePBX 17 installation runs.
  • Your VPS provider: supplies the virtual machine, network connection, public addressing and infrastructure controls.

Keeping those layers separate helps when troubleshooting. A browser problem may be a firewall or web-service issue, while a failed registration or one-way audio problem usually involves SIP trunk settings, NAT or the provider’s network requirements rather than the FreePBX interface itself.

Can FreePBX 17 run on a VPS?

Yes. The documented cloud deployment starts with a fresh Debian 12 image and uses the project’s installation script. The official starting minimum is 2 GB of RAM and 20 GB of disk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Resource or condition Documented starting point What it means in practice
Operating system Debian 12 This is the supported OS line identified for FreePBX 17’s documented installation path.
Memory At least 2 GB RAM A minimum for a basic deployment, not a universal capacity promise.
Storage At least 20 GB disk Enough for the stated baseline installation; recordings, backups and logs can consume substantially more.
Network Internet connectivity Required to obtain packages and to communicate with phones, trunks and administrators.
Administration Root or equivalent privileges The installer must be able to install dependencies and system components.

The official material does not publish a single sizing chart that maps a number of simultaneous calls, recordings or conferences to a particular VPS size. Treat the baseline as a bootstrapping requirement. Select additional CPU, memory and storage after accounting for your workload, and leave room for operating-system updates and retained backups.

Debian, Ubuntu and FreePBX 17 support

FreePBX 17 is officially supported on Debian, with Debian 12 used by the cloud guide and identified by the project’s FAQ as the supported operating-system line. The installer uses PHP 8.2.x by default, and commercial modules are tested against that PHP line.

Ubuntu and other Debian-derived distributions may work in some circumstances, but they are not the official support target described for this release. If predictable installation, module compatibility and supportability matter, choose a provider image explicitly labelled Debian 12 instead of assuming that an Ubuntu image is equivalent.

Choose an installation route

There are three broad ways to run FreePBX: the VPS script workflow, the FreePBX ISO and a dedicated appliance. They are not interchangeable from an operations perspective.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Characteristic Debian 12 VPS plus script FreePBX 17 ISO Dedicated appliance
Operating system Provider’s fresh Debian 12 image ISO based on Debian 12 Vendor-selected hardware and software image
Host control You manage the VPS operating system and virtual resources You control the machine on which the ISO is installed Less control of the underlying hardware, but a more integrated platform
Installation Run sng_freepbx_debian_install.sh Boot the ISO and follow its automated installer Usually delivered as a preconfigured system
Backups and snapshots Can use provider snapshots plus your own configuration and recording backups Depends on the physical or virtual host’s backup tooling Depends on the appliance’s storage and backup design
Public IP and firewall Controlled through the VPS provider and the Debian host Controlled by the local network or hypervisor Controlled by the appliance’s network placement and firewall
SIP and NAT You must design the VPS network, NAT and trunk integration You must design the local network and NAT Still requires correct trunk and firewall configuration
Telephony cards Virtual machines generally do not provide the physical slots required by cards Can be installed on compatible hardware where cards are available Best fit when dedicated telephony hardware is required
Maintenance You maintain Debian, Asterisk, FreePBX modules, security and backups You maintain the host and the installed system Hardware and software support may be available through the appliance program

The ISO automates much of installation, but a normal cloud-server workflow begins with the provider’s Debian image and the script. An appliance is a different choice for organisations that need dedicated telephony hardware or a packaged support arrangement rather than a general-purpose virtual server.

Rank #2
Ooma Telo VoIP Free Internet Home Phone Service: Black
  • Crystal-clear nationwide calling for free and low International rates. Pay only monthly applicable taxes and fees.
  • # 1 rated home phone service for overall satisfaction and value by a leading consumer research publication.
  • Pure Voice HD delivers superior voice quality for a consistently great calling experience.
  • Includes nationwide calling, voicemail, caller-ID, call-waiting, 911 calling and text alerts.
  • More features including the ability to block robocallers available when you upgrade to Ooma Premier phone service.

Prepare the VPS before installing

Do the operational planning before launching the installer. A PBX is a communications service, not an ordinary website: it handles authentication, call signaling, media and potentially sensitive recordings.

  • Choose a fresh Debian 12 VPS with at least 2 GB RAM and 20 GB of disk. Increase those resources when recordings, conferencing, transcoding, backups or monitoring will run on the same machine.
  • Confirm that the server has reliable internet connectivity and a public-addressing and NAT design that your SIP trunk and phones support.
  • Make sure you can reach the machine with root or equivalent administrative access. The installer needs system-level privileges.
  • Decide how administrators will reach the web interface. Restrict it to trusted networks or a VPN where possible rather than exposing administration broadly to the internet.
  • Plan both a provider-level firewall and a host firewall. Do not copy a universal SIP port list: the correct rules depend on the selected trunk, phones, NAT design and provider documentation.
  • Decide where configuration backups and call recordings will be stored. A snapshot alone is not a substitute for a tested backup and restore process.
  • Record the authentication and call-monitoring responsibilities for whoever will operate the service.

Install FreePBX 17 on a Debian 12 VPS

The following procedure follows the documented cloud path. Use the current official FreePBX instructions to obtain the installer so that you receive the version and download method maintained for the release.

  1. Provision a clean Debian 12 image

    Create the VPS from a provider image explicitly identified as Debian 12. Allocate at least 2 GB of RAM and 20 GB of disk for the documented minimum. Do not start from an existing general-purpose server with unrelated packages unless you are prepared to troubleshoot conflicts; the supported path is a fresh image.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Connect with administrative access

    Connect to the server through the provider’s console or remote terminal using root or an equivalent account with permission to install system software. Keep the session available for the duration of the installation so that you can see errors rather than losing the process in the middle.

  3. Obtain the official installer

    Download the project’s sng_freepbx_debian_install.sh script by following the current FreePBX installation guide. Verify that you are using the official script rather than an altered copy from an untrusted source.

  4. Run the script

    From the directory containing the downloaded file, run the script with administrative privileges:

    bash sng_freepbx_debian_install.sh

    The installer installs dependencies and the FreePBX components. The official guide says the process can take around 30 minutes or more, depending on the server’s speed and internet bandwidth. Do not assume that a quiet terminal means the installation has finished; wait for the script’s completion message.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    Rank #3
    Ooma Telo VoIP Free Internet Home Phone Service and HD3 Handset
    • Ooma has been rated the top phone service by Consumer Reports.
    • Crystal-clear nationwide calling for free and low international rates. Pay only monthly applicable taxes and fees. Works only in the US.
    • Included Ooma HD3 Handset features a 2” color display and full-duplex speakerphone.
    • Take your home phone on the go with the easy-to-use Ooma Home Phone mobile app
    • Includes unlimited calling in the U.S., voicemail, caller-ID, call-waiting, 911 calling and text alerts.
  5. Add DAHDI only when you need it

    If the deployment requires DAHDI support, particularly for compatible Sangoma digital or analog telephony cards, the installation guide documents an optional argument:

    bash sng_freepbx_debian_install.sh --dahdi

    A VPS without the relevant hardware does not gain a benefit from adding a hardware-specific option. Confirm the card and driver requirements before selecting it.

  6. Open the web installer

    When the script completes, open the server’s IP address in a browser and follow the initial web setup. Use the protocol and address presented by the completed installation, and make sure the provider firewall and host firewall allow the administrative connection from your trusted network.

  7. Create and protect the first administrator account

    Use a unique, high-entropy password and do not reuse credentials from the VPS provider, SIP trunk or another service. After initial setup, restrict administrative access to trusted networks or a VPN where feasible and document who has access.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the installer does not solve for you

A successful installation gives you the software stack; it does not automatically design your telephony service. You still need to configure the relationship between the PBX, phones, SIP trunk and network.

SIP trunk and phone configuration

Obtain the registration, authentication, codec, signaling and media requirements from your chosen trunk provider and handset documentation. Enter those requirements in FreePBX and test inbound and outbound calls separately. A trunk can appear registered while media still fails because NAT or firewall behavior is incorrect.

NAT and media paths

A VPS with a public address is not automatically a correct SIP deployment. Document which addresses are public, which devices are behind private NAT, and how signaling and media traverse the provider firewall, host firewall and any local router. Test both directions of audio and call transfer rather than treating registration as proof that the network is complete.

Rank #4
Yealink, Landline Phone, Classic Gray
  • Mid-level phone, ideal for professionals and managers with moderate call load
  • Ergonomic design with adjustable display
  • Built-in Bluetooth, Wi-Fi

Firewall policy

There is no single official port list that fits every trunk, phone fleet and NAT design. Start with the requirements of the selected providers and devices, then allow only the traffic you need. Keep the web administration interface separate from the paths required for phone signaling and media whenever your design permits.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Security and day-to-day operations

Place the VPS PBX in the same security category as any internet-facing communications server. The provider firewall is one layer; the Debian host firewall is another. Both should be reviewed when you change trunks, phones or administrator access.

  • Limit administration: expose the web interface only to trusted source networks or a VPN when possible.
  • Use unique credentials: protect the FreePBX administrator, VPS account and SIP accounts independently.
  • Patch all layers: keep Debian, Asterisk and FreePBX modules maintained according to their supported update procedures.
  • Back up configuration and recordings: store copies outside the VPS when practical and test that they can actually be restored.
  • Monitor authentication and calls: review failed logins, unexpected registration activity and unusual call behavior.
  • Control remote access: the FreePBX ISO documentation notes that root login through the local or remote command-line terminal is disabled by default for security. Check the access state of the image and your provider console before changing it.

Do not treat a snapshot as your only recovery method. A snapshot can preserve a disk state, but a separate configuration and recording backup gives you more options when a system is corrupted, compromised or moved to a different VPS.

Resource planning beyond the minimum

The 2 GB RAM and 20 GB disk figures answer whether a basic installation can start; they do not describe how large a production PBX should be. Capacity depends on what the system does and what it retains.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Call volume and concurrency: more simultaneous calls increase processing and media activity.
  • Recordings: recording retention consumes disk space continuously, and backup copies consume additional space.
  • Transcoding: converting media between formats can require more CPU than passing compatible media through unchanged.
  • Conferencing: a conference bridge can add processing and memory demand compared with simple point-to-point calls.
  • Backups: local staging or retained archives need space beyond the base installation.
  • Monitoring: logs and call activity data grow over time and must be retained, rotated or exported deliberately.

Because the official material does not provide a universal workload-to-resource table, size from your expected concurrency and retention policy, then monitor the running system. If you outgrow the initial VPS, plan a controlled migration rather than waiting for disk exhaustion or an overloaded host to force an emergency move.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Upgrades and migration from an older release

Do not assume that a major-version upgrade can be performed with the normal installer or upgrade utility. The FreePBX project warns that upgrades from an older major release require a fresh installation and transfer of data.

A practical migration sequence

  1. Inventory extensions, trunks, routes, recordings, custom settings, certificates and any hardware dependencies on the old system.
  2. Provision a separate, clean Debian 12 VPS for FreePBX 17 rather than modifying the old major-version host in place.
  3. Install FreePBX 17 through the supported script path and apply the security controls before exposing it to normal traffic.
  4. Prepare and validate configuration and recording backups from the old system according to the supported migration method for the versions involved.
  5. Transfer the required data, then test inbound calls, outbound calls, audio in both directions, voicemail, recording access and administrator login.
  6. Schedule the final traffic change, keep the old system available for rollback, and document the new addresses, credentials and backup locations.

The exact data-transfer procedure varies with the modules and customizations in the old installation. Preserve the old server until the new system has passed call and recovery tests.

Best Value
AT&T BL102-3 DECT 6.0 3-Handset Cordless Phone for Home with Answering Machine, Call Blocking, Caller ID Announcer, Audio Assist, Intercom, and Unsurpassed Range, Silver/Black
  • UNSURPASSED RANGE & ANSWERING SYSTEM Experience the best in long-range coverage and clarity, provided by a unique antenna design and advances in noise-filtering technology. This reliable cordless system includes a digital answering machine that can record up to 22 minutes of incoming messages, outgoing announcements and memos, and a voice-guide for easier set up.
  • SMART CALL BLOCKER & CALLER ID ANNOUNCE Say goodbye to unwanted calls. Robocalls on your landline are automatically blocked from ever ringing through - even the first time. You can also permanently blacklist any number you want with one touch on the delicated key on the handset. The call block directory can store up to 1,000 name and number entries. Plus, the handset announces the name of the caller, so you can decide on answer the call or block it - screening call is never easier.
  • LARGE 2-INCH SCREEN, BIG TEXT, LIGHTED KEY PAD High-contrast text on the extra-large 2 inch screen makes it easy to read incoming caller ID or call history records. Plus, the enlarged font and extra-large and lighted handset keypad allows for easy dialing in low-light conditions. This feature is especially helpful for those who are visually impaired.
  • HANDSET SPEAKERPHONE, AUDIO ASSIST, INTERCOM This cordless system has built-in a full-duplex speakerphone on handset allowing both ends to speak - and be heard - at the same time for conversations that are more true to life. Also designed with useful features like Audio Assit, handset intercom to help your daily communications enjoyable.

When physical telephony hardware changes the answer

A VPS is suitable when your phones and trunks connect over IP and the virtual machine provides the network behavior they require. It is not a substitute for a physical slot when you need a telephony card. The installation guide documents the optional --dahdi argument for DAHDI support, particularly for compatible Sangoma digital or analog cards.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If a project depends on those cards, compare a compatible physical host or a dedicated appliance with a VPS before deployment. Confirm that the selected platform can physically accept the card, expose it to the operating system and provide the support path you need. A virtual server cannot supply hardware that its host does not expose.

Common failure points and recovery checks

The installer stops or reports dependency errors

  • Confirm that the image is a fresh Debian 12 installation and that the account has root-equivalent privileges.
  • Check internet connectivity and the provider’s outbound filtering.
  • Verify that the VPS still has the minimum memory and disk space and that the session remained connected.
  • Use the current official installer and follow its documented prerequisites rather than combining commands from unrelated distributions.

When a partially installed system is difficult to diagnose, record the error output and rebuild from a clean Debian 12 image instead of layering repeated attempts on an unknown state.

The browser cannot reach the server

  • Confirm that the installation completed rather than still running.
  • Check the VPS provider firewall, the Debian host firewall and the address you entered.
  • Try from the trusted network allowed by your administrative policy.
  • Use the provider console to inspect the server if remote access is blocked.

Phones register but calls have missing or one-way audio

  • Review the NAT design and compare it with the trunk and handset provider requirements.
  • Check that signaling and media traffic are permitted by both firewall layers.
  • Test inbound and outbound calls independently and record which direction fails.
  • Avoid adding a generic port list without understanding the selected provider’s documented requirements.

The disk fills unexpectedly

  • Check recording retention, backup copies and accumulated logs.
  • Move archives to planned external storage and define retention limits.
  • Increase the VPS disk before the filesystem reaches capacity, then verify that backups and recordings remain accessible.

Is self-hosting FreePBX on a VPS right for you?

A VPS is a good fit when you want control over the operating system, public networking, snapshots and resource sizing, and when your telephony is IP-based. You are also accepting responsibility for Debian, Asterisk, FreePBX modules, firewall policy, SIP/NAT behavior, backups and monitoring.

The FreePBX ISO reduces installation work on a machine where you control the boot media. A dedicated appliance is more appropriate when physical telephony cards, integrated hardware or a packaged support arrangement is central to the design. In every case, the phone system still needs a deliberate network, security and recovery plan.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a standard cloud deployment, the defensible starting point is straightforward: use Debian 12, allocate at least 2 GB of RAM and 20 GB of disk, run the official installer with administrative access, complete web setup, and then secure and size the service for its actual call and retention workload. FreePBX 17 provides the management layer; reliable operation comes from the surrounding VPS, network and maintenance practices.

Quick Recap

SaleBestseller No. 1
Ooma Telo VoIP Free Internet Home Phone Service with 3 HD3 Handsets
Ooma Telo VoIP Free Internet Home Phone Service with 3 HD3 Handsets
Ooma has been rated the top phone service by Consumer Reports.
$119.99
Bestseller No. 2
Ooma Telo VoIP Free Internet Home Phone Service: Black
Ooma Telo VoIP Free Internet Home Phone Service: Black
Pure Voice HD delivers superior voice quality for a consistently great calling experience.
$79.99
Bestseller No. 3
Ooma Telo VoIP Free Internet Home Phone Service and HD3 Handset
Ooma Telo VoIP Free Internet Home Phone Service and HD3 Handset
Ooma has been rated the top phone service by Consumer Reports.; Included Ooma HD3 Handset features a 2” color display and full-duplex speakerphone.
$125.92
Bestseller No. 4
Yealink, Landline Phone, Classic Gray
Yealink, Landline Phone, Classic Gray
Mid-level phone, ideal for professionals and managers with moderate call load; Ergonomic design with adjustable display
$184.22

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.