UnderHost
Knowledgebase Docs

How to install aaPanel on Ubuntu

Deploy the free aaPanel control panel on an Ubuntu VPS in minutes. Includes system preparation, the one-line installer, firewall rules, and initial SSL setup.

On this page

aaPanel (formerly BaoTa Panel) is a free, open-source server management panel that provides a web interface for managing Nginx/Apache, MySQL, PHP, and more. It's an excellent choice for a VPS when you want the convenience of a GUI without the cost of a cPanel license.

Fresh server recommended

Install aaPanel on a freshly provisioned VPS with no existing web server or control panel software. Mixing aaPanel with an existing stack can cause conflicts and is not supported.

Requirements

ItemMinimumRecommended
OSUbuntu 20.04Ubuntu 22.04 LTS or 24.04 LTS
RAM512 MB1 GB+
Disk5 GB free20 GB+
AccessRoot SSH accessRoot SSH access
Ports22, 80, 443, 7800 openSame

Prepare the server

SSH into your VPS as root and update all packages first:

server · bash
apt update && apt upgrade -y
apt install -y wget curl

Install aaPanel

aaPanel provides a one-line installer. Run this as root:

server · bash
wget -O install.sh https://www.aapanel.com/script/install_7.0_en.sh && bash install.sh aapanel

The installer takes 5–15 minutes depending on server speed. At the end it prints your panel URL and login credentials-save these.

Save your credentials immediately

aaPanel only displays the auto-generated password once during installation. Save the panel URL, username, and password before closing your terminal. You can reset the password from the server later if needed, but writing it down now saves time.

Firewall & access

aaPanel runs on port 7800 by default. You need to allow this port in your system firewall:

server · bash
# Allow aaPanel port, HTTP, and HTTPS
ufw allow 7800/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 22/tcp
ufw enable
Restrict panel access by IP

aaPanel's admin interface should not be accessible to the entire internet. In aaPanel, go to Settings → Panel Security → IP whitelist and add only your IP address. This prevents brute force attacks on the panel login.

First login

Open your browser and navigate to the panel URL shown during installation (format: http://YOUR_IP:7800/UUID). Log in with the auto-generated credentials.

On first login, aaPanel recommends a software stack. Choose based on your use case:

RecommendationUse when
LNMP (Nginx + MySQL + PHP)WordPress, general web apps-best performance
LAMP (Apache + MySQL + PHP)Apps that require Apache-specific features like .htaccess
Nginx onlyStatic sites, reverse proxy setups

Enable SSL for the panel

After pointing a (sub)domain at your VPS, you can enable HTTPS for the aaPanel interface itself:

  1. In aaPanel, go to Settings → SSL.
  2. Select Let's Encrypt and enter the domain/subdomain pointing to your server.
  3. Click Apply. The panel will reissue itself over HTTPS.
  4. Access the panel via https://panel.yourdomain.com:7800 going forward.

FAQ

The core aaPanel is free and open-source. Some advanced plugins (one-click deployment, monitoring add-ons) have paid tiers, but the essential features for hosting websites are all free.
No. Only one control panel should be installed on a server. aaPanel and cPanel conflict at the system level (web server, mail server, etc.). Install only one or provision a separate VPS.
SSH into your server and run: bt default. This resets the panel URL, username, and password back to a new random value that you can then change in the panel settings.
Was this article helpful?

Installation issues?

Contact our NOC team if you need help installing or configuring aaPanel on your VPS.

Related articles

Back to Developer Tools