Introduction
OpenPanel is a web hosting control panel that gives every hosting account its own containers. A container, in this context, is an isolated environment for a piece of software, so each account runs its own web server and PHP, walled off from the other accounts while sharing the server’s operating system. Each account has its own CPU and memory limits.
OpenPanel comes in two editions. The free Community edition suits a personal server where you want a few sites kept apart, while the paid Enterprise edition is for hosting other people’s sites and adds email and FTP.
We’ll show you how to install Community on a fresh VPS and finish with one site online under its own account. Our guide to choosing a VPS control panel compares OpenPanel with other popular options.
What You’ll Need
- The right edition for your sites. Community is free for private or personal use, with up to three users and 50 domains. Hosting for clients needs Enterprise, a paid licence billed monthly or yearly, which removes those limits and adds email, FTP, and cPanel backup imports.
- A fresh Ubuntu 24.04 VPS. At time of writing, Community runs only on Ubuntu 24.04, while Enterprise also supports Debian, AlmaLinux, Rocky Linux, and CentOS. OpenPanel’s requirements start at one CPU core, 1 GB of RAM, and 20 GB of disk, with 4 GB of RAM and 50 GB recommended.
- Root access. Every command here runs as root, whether over SSH or through the provider’s web-based console.
- Two subdomains whose DNS you control. We’ll use
openpanel.example.comfor both control panel interfaces andsite.example.comfor the website, so swap in your own names as you go.
Step 1 — Prepare the Server
OpenPanel’s installer expects a blank system. Move any site files and database dumps you want to keep somewhere else. After that, open the STW control panel, pick the VPS from Products, and use Manage → Reinstallation to wipe the disk, which removes its snapshots too. Screenshots of each screen are in the first installation guide in this series.
When the rebuilt server is ready, connect as root. These commands update the system, add the curl, wget, and sudo utilities that OpenPanel’s installer calls, and set the hostname.
apt update
apt -y upgrade
apt -y install curl wget sudo
hostnamectl set-hostname openpanel.example.com
printf 'preserve_hostname: true\n' > /etc/cloud/cloud.cfg.d/99-preserve-hostname.cfg
A hostname is the name a server knows itself by. OpenPanel’s installer doesn’t set it, so without these lines the server keeps the provider’s default name while answering to openpanel.example.com. The printf line stops cloud-init, which configures cloud images at boot, from restoring that default.
Next, open /etc/hosts, the local list of names the server checks before asking DNS. Change its 127.0.1.1 line to 127.0.1.1 openpanel.example.com openpanel. If cloud-init manages that file, set the same line in /etc/cloud/templates/hosts.debian.tmpl as well. Then run reboot, reconnect, and check that hostname -f prints openpanel.example.com.
Step 2 — Publish DNS Records and Save a Clean Snapshot
The installer writes your control panel name into the configuration for Caddy, the web server that receives every visitor’s request first. Caddy handles the HTTPS side of the connection, then passes each request to the web server inside the right account’s containers.
During installation it also obtains a certificate from Let’s Encrypt, the file that lets browsers confirm they’ve reached your server and encrypt the connection. Let’s Encrypt issues one only after reaching your server at that name over the internet, so the records below have to work before you install.
| Name | Type | Value |
|---|---|---|
openpanel.example.com |
A | Your VPS’s IPv4 address |
site.example.com |
A | Your VPS’s IPv4 address |
To set this up at STW, open DNS, select the domain, and use New record for each name. Choose Add as draft both times, then publish. If subdomains are new to you, our explainer on A records, CNAMEs, and subdomains shows how they relate to the main domain.
From your own computer, check both names against Google’s public resolver.
nslookup openpanel.example.com 8.8.8.8
nslookup site.example.com 8.8.8.8
You want the VPS’s address in both answers. An older address means a cached record hasn’t expired yet, as our guide to DNS propagation explains. Look for AAAA records too, since an IPv6 address aimed at another server can send Let’s Encrypt to the wrong machine.
On Linux or macOS,
dig +short openpanel.example.com @8.8.8.8anddig +short site.example.com @8.8.8.8print just the addresses.
Save the clean state
Back in the STW control panel, open Snapshots → Take Snapshot, give it a name like before-openpanel-install, and keep Include RAM switched off. Install once its status reads Active.
Step 3 — Install OpenPanel Community and Sign In
OpenPanel installs with a single command-line script, which you run as root in your SSH session. The official installer takes your control panel name and an administrator username as options. --skip-dns-server leaves out BIND, the DNS server software OpenPanel would otherwise install, because your current DNS provider keeps answering for the domain. If you’ve bought Enterprise, add --key=YOUR_LICENCE_KEY as well. Swap in your own control panel name before running it.
bash <(curl -sSL https://openpanel.org) \
--domain=openpanel.example.com \
--username=opadmin \
--skip-dns-server
Without a key, you get Community. The installer sets up Podman, the software that runs the containers, along with OpenPanel’s Sentinel firewall and the control panel itself, then fetches the certificate. Installation typically finishes in under three minutes. Keep the administrator password it prints somewhere safe.
Go to https://openpanel.example.com:2087/ and log in as opadmin. The 2087 is a port number, which directs the connection to OpenAdmin, the administrator’s interface for the whole server. Website owners use the same address with port 2083 instead (https://openpanel.example.com:2083/), which opens a separate interface that shares the product’s name, OpenPanel.
On your first sign-in, OpenAdmin opens an optional onboarding guide, and Skip to dashboard takes you straight in.
What’s running now
A few services run once for the whole server. Every account you create later gets its own containers.
| Shared by the server | Separate for each account |
|---|---|
| Caddy, which receives all web traffic and handles HTTPS | Apache or another web server |
| OpenAdmin and OpenPanel | PHP-FPM, which runs the site’s PHP code |
| MariaDB and Redis, which hold the control panel’s own data | MariaDB or MySQL, once the account creates a database |
OpenPanel 2.0 runs Podman in rootless mode, so each account’s containers run under that account’s own Linux user, without administrator rights on the host. That limits the damage a compromised site can do, because even if an attacker breaks out of its containers, they only get that account’s permissions, not control of the whole server. Installations from before 2.0 use Docker, a similar container engine.
Step 4 — Check HTTPS and the Firewall
Before adding any accounts, confirm that both interfaces have trusted HTTPS (a certificate your browser accepts without showing a warning) and that the firewall the installer set up is running.
Check the certificate
Open Settings → General. Hostname should show your control panel name, the port fields should read 2087 and 2083, and SSL should show Auto SSL. Your browser should open both ports on that name without a certificate warning.
If the certificate is missing, run the two
nslookupordigcommands from Step 2 again on your own computer, and make sure both names still return the VPS’s address. Then check that both the server’s firewall and any provider firewall let in TCP 80 and 443, since Let’s Encrypt connects on those ports. Manage SSL on the same page opens the control panel’s certificate settings.
Check the firewall
Sentinel decides which ports the internet can reach. Security → Firewall opens Sentinel Security & Firewall, which should report Enabled and Running. Sentinel is built on CSF (ConfigServer Security & Firewall), the same firewall DirectAdmin uses, so its settings will look familiar if you’ve followed our DirectAdmin installation guide. The installer has already opened SSH, web traffic, and both control panel ports over IPv4.
Step 5 — Create an Account With Its Own Web Server
Open Accounts → Users → Create New. Give the owner a username like siteowner, add their email, and set a strong password. Leave send email unticked unless you want the login details emailed to the owner.
Under Select a package, keep Standard plan and click Create User. A package, which OpenPanel also calls a hosting plan, sets the most CPU, memory, and storage the account may use. By default, Standard allows two CPU cores, 2 GB of memory, and 5 GB of storage, and you can edit packages later under Hosting Plans.
The success screen shows the owner’s password in plain text. Use those details at https://openpanel.example.com:2083/ from a private window or another browser, and you’ll see the website tools without OpenAdmin’s server settings.
On first login, OpenPanel asks the owner for a default PHP version. Pick one your application supports, such as PHP 8.4, continue through the security options, and click Finish. Owners can add two-factor authentication to their own login, separately from yours.
Step 6 — Add the Domain and Redirect HTTP
Still signed in as the owner, open Domains → New Domain and enter site.example.com. Document Root (folder) fills in as /var/www/html/site.example.com, the folder the website’s files are served from. Click Add Domain.
Now open https://site.example.com/. OpenPanel requests the certificate automatically, and once the account’s web server is running you’ll see a placeholder headed Ready, set, internet, saying the domain has no website yet.
If the site returns 502
A 502 Bad Gateway comes from Caddy. It has the request and the certificate, but the account’s web server didn’t answer, because adding a domain can start the account’s PHP service while leaving Apache switched off. In the owner’s interface, open Processes & Services, select apache, and click Click to Enable. Reload the site once Status reads Running.
If Apache is running and the error stays, View container log on the same screen shows what the service reported.
Where the files are. The containers see the site at
/var/www/html/site.example.com, but the host keeps the files in a different directory and maps them into that path. Files → File Manager, or the domain’s document-root link, takes you straight to them.
Send HTTP visitors to HTTPS
Before adding a redirect, check the HTTP address from your own computer. The -I option prints just the response headers, while -L has curl follow redirects, so you see each step of the chain.
curl -IL http://site.example.com/
A single 200 response without a redirect means the page is being served unencrypted, which is how a new domain behaves at the time of writing. An .htaccess file (Apache’s per-folder settings file, which can hold redirect rules) can add the redirect. In File Manager, open the site’s directory, choose New File, enter .htaccess, tick Open in File Editor after creation, and click Create. Add these lines and click Save.
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
curl -IL http://site.example.com/
With the rule saved, the same check should now show two responses. The first is a 301 redirect, and its Location line should read https://site.example.com/. The second is a 200, which means the HTTPS page loaded. Curl rejects any certificate it can’t check, which makes that 200 proof that the certificate is valid too.
If curl stops with a “maximum redirects” error instead, the rule is sending requests round in a loop, so check that your .htaccess matches the lines above exactly. Then open the HTTPS address in a browser, where the placeholder should load without a warning.
Optional Security Measures
Anyone who gets into OpenAdmin controls the whole server, so we recommend the two measures below. With two-factor authentication, signing in also takes a short-lived code generated on your phone, and a fixed-address rule keeps everyone but you away from the login page. Your site doesn’t need either one to work, and visitors won’t notice them.
Add an authenticator code (optional)
Install an authenticator on your phone to generate two-factor authentication codes. The extra code protects your login if someone obtains your password.
Under Security → Two-Factor Authentication, scan the QR code with an authenticator app, then type in the six-digit code it generates to switch two-factor authentication on. From then on, OpenAdmin wants a fresh code after every password. Treat the QR code and its manual secret like a password, because either one can generate your codes.
Before you close this session, sign in again from a private window. After your password, enter the Authentication code from your app and click Verify.
Restrict OpenAdmin to fixed addresses (optional)
If you have a fixed IP address, allowing only that address on port 2087 hides OpenAdmin’s login from everyone else. Add your address before removing public access, and remember the provider console still works if your own address ever moves. Ports 2083, 80, and 443 stay open for owners and visitors.
OpenPanel’s administrator access instructions explain how to apply the firewall restriction.
Conclusion
The owner’s site runs in its own Apache and PHP containers, separate from any account you add later, and sends HTTP visitors to HTTPS. The owner manages it from OpenPanel on port 2083, while OpenAdmin stays yours.
To replace the placeholder, upload your site through File Manager. Community also includes OpenPanel’s WordPress Manager, or our WordPress installation tutorial shows how to install it by hand.
Community doesn’t let owners manage their own backups, so set up off-server backups yourself. Our guide to securing, updating, and backing up a VPS control panel explains both, along with the OS updates you still apply yourself.
Next steps:









