In short
To install a control panel on a VPS, all you need is a clean OS, an FQDN hostname and the panel's official install script. Paid cPanel/WHM suits multi-client hosting, free aaPanel offers a simple interface, CloudPanel fits fast PHP and Node.js sites without email, and HestiaCP is an open-source option that includes email and DNS. At least 4 GB of RAM is recommended for cPanel.
In this guide
- What is a control panel, and why do you need one on a VDS?
- cPanel vs. aaPanel vs. CloudPanel vs. HestiaCP
- Before you install
- Installing cPanel/WHM
- Installing aaPanel
- Installing CloudPanel
- Installing HestiaCP
- Post-install security checklist
- Common installation mistakes
- Which panel should you choose?
- Next step: Pick a VDS that fits your panel
Installing a control panel on a VDS comes down to running a single install script on a clean operating system; the real decision is which panel to pick. If you'll host many client accounts and email, licensed cPanel/WHM makes sense; for a free, lightweight interface, aaPanel; if you only publish fast PHP/Node.js sites, CloudPanel; and for an open-source solution with email and DNS included, HestiaCP. Below, we compare all four by license, resource usage and installation steps.
What is a control panel, and why do you need one on a VDS?
A control panel is software that lets you manage services such as the web server, PHP versions, databases, SSL certificates, email accounts and DNS records from a web interface instead of the command line. With shared hosting, the panel comes preinstalled; on a VDS (virtual dedicated server, similar to a VPS), you have root access, so you choose and install the panel yourself.
A panel isn't required. For a team that runs a single application and knows Linux well, a hand-built LEMP stack uses fewer resources. But if you manage multiple sites, clients or email accounts, a panel greatly reduces the chance of mistakes and the time spent on maintenance.
cPanel vs. aaPanel vs. CloudPanel vs. HestiaCP
| Feature | cPanel/WHM | aaPanel | CloudPanel | HestiaCP |
|---|---|---|---|---|
| License | Paid, tiered by account count | Free (some paid add-ons) | Free | Free, open source (GPL) |
| Supported systems | AlmaLinux, Rocky Linux, CloudLinux, Ubuntu LTS | Ubuntu, Debian, RHEL derivatives | Ubuntu LTS and Debian | Ubuntu LTS and Debian |
| Recommended minimum RAM (approx.) | 2 GB, 4 GB for comfortable use | 1 GB | 2 GB | 1–2 GB, 4 GB with email and antispam |
| Web server | Apache (optional Nginx/LiteSpeed) | Nginx, Apache or OpenLiteSpeed | Nginx | Nginx + PHP-FPM or Nginx + Apache |
| Mail server | Yes | Via plugin | No | Yes |
| DNS server | Yes | Via plugin | No | Yes |
| Multi-client / reseller | Advanced (WHM packages, reseller accounts) | Limited | Per-site users | Users and packages |
| Default panel port | 2087 (WHM), 2083 (cPanel) | Randomly assigned at install | 8443 | 8083 |
The RAM figures are rough guides for the panel itself and its core services; add what your sites, databases and email traffic need on top of that. To size your server correctly, see the guide on how much RAM and how many vCPUs a VDS needs.
Before you install
Whichever panel you choose, these preparations make the installation go smoothly:
- Use a clean operating system. Panels either refuse to install or cause conflicts on systems that already have Apache, Nginx, MySQL or another panel. Install a fresh OS on a version the panel supports.
- Set the hostname as an FQDN. For example,
sunucu.alanadiniz.com. cPanel is strict about this. - Create an A record for the hostname. The panel needs it for its SSL certificate and email delivery. If you'll send email, also point your IP address's PTR record to the hostname; we explain why in the PTR record guide.
- Update the system and plan a snapshot or backup.
sudo hostnamectl set-hostname sunucu.alanadiniz.com
sudo apt update && sudo apt -y upgrade # Ubuntu / Debian
sudo dnf -y update # AlmaLinux / Rocky Linux
Installing cPanel/WHM
cPanel is the industry standard for agencies and businesses that sell hosting. No license is required during installation; a time-limited trial license activates automatically for a new IP address, after which you need a license that matches your account count.
- Connect as root and work inside
screen; the installation takes a while and won't be cut off if your SSH connection drops. - Download and run the official install script:
screen -S cpanel
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
- When it finishes, open
https://SUNUCU_IP:2087in your browser, log in as root and complete the initial setup wizard (contact email, nameservers). - In WHM, define a package with Add a Package and create the first cPanel account with Create a New Account.
cPanel is the most resource-hungry option. For a few client sites and email accounts, starting with a plan that has at least 4 GB of RAM is more comfortable; for example, SA-XEON-2 with 4 GB of RAM and a 40 GB NVMe disk is a good starting point for a small cPanel setup.
Installing aaPanel
aaPanel is a free panel based on BT-Panel with a clean interface. It lets you choose between Nginx, Apache or OpenLiteSpeed and install PHP versions and MySQL with one click.
- Copy the current install command for your operating system from the Install page on aaPanel's official site. The script name changes with each version, so always get the command from the official source.
- Run the command as root and confirm the installation.
- At the end, the panel address, port, security entrance path, username and password are printed on screen. Save them somewhere safe right away.
- On first login, choose the recommended software stack (LNMP or LAMP); the fast install option saves time compared to compiling.
Since the panel port is randomly assigned, make sure that port is open in your firewall, and don't install plugins you won't use.
Installing CloudPanel
CloudPanel is a lightweight, Nginx-only panel optimized for PHP, Node.js, Python and static sites. It doesn't include a mail or DNS server; you'll need an external solution for those services.
sudo apt update && sudo apt -y install curl
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh
sudo bash install.sh
If you want to pick the database engine, run the script with the DB_ENGINE variable; check the official documentation for supported values. After installation, go to https://SUNUCU_IP:8443 and create the admin account. Do this immediately; otherwise, anyone who finds the port could create the admin account before you do.
Installing HestiaCP
HestiaCP is the actively developed open-source successor to VestaCP. It offers web, email (Exim, Dovecot), DNS (BIND) and database services in one panel, making it the most balanced choice for anyone looking for a free cPanel alternative.
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
sudo bash hst-install.sh
The script asks for an admin email and hostname; you can also choose which components to install with parameters (for example, the antispam and antivirus components noticeably increase RAM usage). Run bash hst-install.sh -h to see the options. When installation finishes, the panel opens at https://SUNUCU_IP:8083. For all parameters, see the official HestiaCP documentation.
Post-install security checklist
- Firewall: Open only SSH, 80, 443, the panel port and the email ports you use. cPanel can be managed with its own firewall tools, the others with UFW.
- Restrict panel access: If possible, open the panel port only to your own IP address.
- Harden SSH: Switch to key-based login and disable root password login. For the steps, see the first security steps on a new Ubuntu server guide.
- Backups: Point the panel's backup feature to a destination off the server; a backup on the same disk is useless if the disk fails.
Common installation mistakes
- Starting the installation directly in an SSH session: If the connection drops, the installation stops halfway and leaves the system in an inconsistent state. Use
screenortmux. - Unsupported OS version: Each panel supports only certain distributions and versions. Check the current list in the official documentation before installing.
- Installing two panels on the same server: Web, DNS and email services will conflict. If you want to switch panels, back up your data and reinstall the system.
- Not changing default passwords: Change the passwords printed by the installer on first login, and enable two-factor authentication on panels that support it.
Which panel should you choose?
- If you sell hosting or manage many client sites: cPanel/WHM. The license cost pays off with an interface clients already know and easy migrations.
- Limited budget, a few personal or business sites: aaPanel or HestiaCP.
- Modern PHP, Laravel or Node.js apps, with email hosted elsewhere: CloudPanel.
- Keep email and DNS on your own server without paying for a license: HestiaCP.
Next step: Pick a VDS that fits your panel
Because panels hook deep into the operating system, they require KVM virtualization and full root access. Sunucu Atlas Intel Premium VDS plans come with KVM, root access, NVMe storage and layered DDoS protection; tiered options from 2 GB to 32 GB of RAM make it easy to upgrade as your panel and client base grow. For PHP-heavy sites that need higher single-core performance, consider Ryzen Premium VDS based on the AMD Ryzen 9 5900X. Our servers run in our Istanbul data center; if you get stuck during setup, you can open a support ticket.
Frequently asked questions
Do I have to install a control panel on a VDS?
No. If you run a single application and know Linux, installing Nginx, PHP and MySQL by hand uses fewer resources. If you manage multiple sites, clients or email accounts, a panel makes the job much easier.
What is the best free cPanel alternative?
If you want web, email and DNS together, HestiaCP is the most balanced free option. If you'll only host websites, CloudPanel is lighter; aaPanel is a good pick for a simple interface and one-click software installs.
Can I remove an installed panel and install a different one?
Panels make deep changes to system services, so uninstalling them rarely leaves a clean result. The safest path is to back up your data, reinstall the operating system and install the new panel on a clean system.
How much RAM does cPanel need?
cPanel's official minimum is 2 GB, but 4 GB or more is recommended for it to run comfortably with a few sites and email accounts. RAM needs grow as your number of sites and accounts increases.
How long does it take to install a control panel?
It depends on server speed and the components you choose; lightweight panels install in a few minutes, while cPanel takes longer. Run the installation inside screen or tmux to protect it from dropped connections.