Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to Deploy a 3CX Template on a Plenit Server

3CX is a unified communications and PBX platform based on Debian. In Plenit, you deploy it from the Marketplace, which speeds up initial provisioning and leaves the 3CX web configuration ready to be completed later.

πŸ‘ What you get

A server with 3CX deployed from the Marketplace and its web configuration wizard accessible through port 5015.

Before you start

  • Log in to the Plenit platform.

  • Have a Servers subscription available.

  • Decide which public IP you will use to expose port 5015 during initial setup.

πŸ“˜ Two things after deployment

When the server has been created, open its console to enable remote access to the web administration and publish the port 5015 in the firewall. You can see it in Step 2.

Step 1. Deploy the 3CX template

Go to the subscription of Servers and click New server to open the wizard. From there:

  1. Select the location and click Next.

  2. Choose the size (CPU and RAM) and click Next.

  3. Open the Marketplace, click the 3CX, choose the version and the language and click Next.

  4. Choose the disk size and click Next.

  5. Configure the network and click Next.

  6. On the final screen, create a label and an SSH key if you need them, check Open SSH port to Access the service only if you are going to manage it from the terminal, assign a name and click Create Server.

πŸ“˜ Size according to your environment

The minimum recommendation for 3CX is 1 CPU with 2 cores and 2 GB of RAM. Assign more resources if the environment requires it.

When deployment starts, you will see the server in status Loading and a creation notification. When it finishes, you can continue with the initial 3CX setup.

Selection of 3CX, its version, and its language in the Marketplace

Step 2. Prepare the 3CX system

🚧 First the console, then the port

Port 5015 is useless until you enable web access from the console. Do this step before opening the firewall.

Go back to the Plenit dashboard and open the console of the server. Select the option 1 to enable remote access to the initial web administration. The console starts the configuration web tool and shows a URL with the server's private IP and port 5015. Since the server is in the cloud, to access it from outside you'll have to use its public IP instead of the private one: that's why the next step is to expose that port.

3CX console with the option to enable web configuration

Then, at the bottom of the server configuration, click New entry rule and create a NAT (redirection between the public IP and the server's private IP) to expose 5015:

  • Select network: normally, leave it as is.

  • IP or Network: an IP or source range, or Any IP to allow any network.

  • Protocol: TCP.

  • Public IP: the public IP through which the connection is served.

  • Public port: 5015, the same one you will use to validate access.

  • Private IP: the internal IP of the 3CX server.

  • Private Port: 5015.

Click Continue and check that the rule appears in the firewall list.

Creation of the NAT rule for the 3CX 5015 port

πŸ‘ Reduce the exposure of initial access

5015 is the gateway to the administration of your PBX. Whenever you can:

  • Fill in IP or Network with a specific IP or range instead of Any IP.

  • Open 5015 only during initial setup and remove or restrict the rule when you're done.

  • Check Open SSH port and use an SSH key only if you are really going to manage it from the terminal.

Validation

Open in the browser http://Public_IP:5015, replacing Public_IP with the public IP of the rule. If it loads, you'll see the screen Configure your 3CX Install, with the options to upload a new configuration or restore a backup, and you can now continue with the web wizard.

To confirm it from the terminal:

If something doesn't fit

Symptom
Probable cause
What to do

http://IP:5015 does not respond

You didn't enable web access in the console

Open the console and choose the option 1

Still doesn't open

The rule doesn't publish 5015 correctly

Check that the rule exists and that the Private Port is 5015

Connects to another machine or doesn't reach it

IPs incorrectly assigned in the rule

Check that Public IP and Private IP are correct

It responds to others but not to you

IP or Network leaves you out

Make sure your IP is within the allowed range

Conclusion

With this, you have 3CX deployed from the Marketplace and its web wizard ready on 5015. The key to the process is two steps in order: enable web access from the console and, only after that, publish the port. And since this is a PBX, close or restrict that 5015 as soon as you finish the initial setup: it is not a good idea to leave administration exposed to the Internet any longer than necessary.

Last updated

Was this helpful?