Close Menu

    Subscribe to Updates

    Get the latest tech news from Unixzone about tech, Unix and infrastructure.

    What's Hot

    How to install 3CX on Debian 12

    December 9, 2025

    How to Install a Secure Mail Server with Docker

    September 15, 2025

    Install Windows Over Network via iPXE + Samba + HTTP Boot

    August 4, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Unix ZoneUnix Zone
    • Homepage
    • Categories
      • Article
      • Linux
      • Unix
      • Security
      • Tips
    • Get In Touch
    Subscribe
    Unix ZoneUnix Zone
    Home»VOIP»How to install 3CX on Debian 12
    VOIP

    How to install 3CX on Debian 12

    LinuxZoneBy LinuxZoneDecember 9, 2025Updated:December 9, 2025No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    3CX is a popular software-based IP PBX/VoIP system that lets you run a full business phone system on your own server. In this guide, we’ll install 3CX PBX on Debian 12 (Bookworm) using the official 3CX APT repository.

    This method is clean, easy to update, and recommended for most production environments.


    Prerequisites

    Before you start, make sure you have:

    • A fresh Debian 12 (Bookworm) server (minimal install is fine).

    • Root access, or a user with sudo.

    • A static public IP address and working DNS record (FQDN recommended).

    • Required ports open on your firewall (e.g., 5000/5001, 5060/5090, RTP range).


    Step 1: Update System & Install Dependencies

    First, update your system and install required packages:

    				
    					apt update && apt install sudo wget gnupg gnupg2 dphys-swapfile -y
    				
    			

    Why these packages?

    • wget downloads repository keys/scripts.

    • gnupg/gnupg2 handles repository signing keys.

    • dphys-swapfile helps with swap on small RAM VPS setups.

    Step 2: Add the 3CX Repository Key

    Download and install the 3CX public PGP key:

    				
    					wget -O- https://repo.3cx.com/key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/3cx-archive-keyring.gpg >> /dev/null
    				
    			

    This ensures your server only installs 3CX packages signed by the official key.


    Step 3: Add the Stable 3CX Repository

    Add the official stable repository for Debian 12:

    				
    					echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | tee /etc/apt/sources.list.d/3cxpbx.list
    				
    			

    Step 4: Refresh and Upgrade Packages

    Update the package list and upgrade your system:

    				
    					sudo apt update -y && sudo apt-get upgrade -y --with-new-pkgs && sudo apt dist-upgrade -y && sudo apt autoremove -y
    				
    			

    This helps avoid dependency clashes before installing 3CX.


    Step 5: Install 3CX PBX

    Now install 3CX:

    				
    					sudo apt install 3cxpbx -y
    				
    			

    Step 6: Cleanup Previous Install (If Needed)

    If you had a previous 3CX installation and want a clean reinstall:

    				
    					sudo /usr/sbin/3CXWizard --cleanup
    				
    			

    This removes old configuration and leftovers.

    Post-Install Tips (Recommended)

    • Use Stable for production.

    • Enable backups before major upgrades.

    • Harden your server:

      • Firewall rules for SIP/RTP only from trusted sources.

      • Fail2ban for brute-force protection.

    • Use a valid FQDN + TLS certificate for WebClient and mobile apps.

    That’s it — you now have a fully installed 3CX PBX on Debian 12 using the official repository. From here, complete the wizard, create extensions, add SIP trunks, and configure inbound/outbound rules.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Install a Secure Mail Server with Docker
    LinuxZone
    • Website

    Add A Comment
    Leave A Reply Cancel Reply

    Request Service
    Italian Trulli
    Top Posts

    Mikrotik SSTP VPN, Installing, Scripts, Advantages, and Disadvantages

    October 6, 2024254 Views

    Install Windows Over Network via iPXE + Samba + HTTP Boot

    August 4, 2025129 Views

    How to Install Node.js 12 on CentOS (Two Easy Methods)

    March 31, 2021108 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews

    Subscribe to Updates

    Get the latest tech news from Unixzone about tech, Unix and infrastructure.

    Demo
    Most Popular

    Mikrotik SSTP VPN, Installing, Scripts, Advantages, and Disadvantages

    October 6, 2024254 Views

    Install Windows Over Network via iPXE + Samba + HTTP Boot

    August 4, 2025129 Views

    How to Install Node.js 12 on CentOS (Two Easy Methods)

    March 31, 2021108 Views
    Our Picks

    How to install 3CX on Debian 12

    December 9, 2025

    How to Install a Secure Mail Server with Docker

    September 15, 2025

    Install Windows Over Network via iPXE + Samba + HTTP Boot

    August 4, 2025

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Facebook X (Twitter) Instagram YouTube LinkedIn WhatsApp Telegram
    • Home
    • Technology
    • Gaming
    • Phones
    • Buy Now
    © 2025 All Right Reserved By Gulf Digital Portal - UnixZone.

    Type above and press Enter to search. Press Esc to cancel.

    Manage Consent
    To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
    Functional Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    • Manage options
    • Manage services
    • Manage {vendor_count} vendors
    • Read more about these purposes
    View preferences
    • {title}
    • {title}
    • {title}