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.
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
| Item | Minimum | Recommended |
|---|---|---|
| OS | Ubuntu 20.04 | Ubuntu 22.04 LTS or 24.04 LTS |
| RAM | 512 MB | 1 GB+ |
| Disk | 5 GB free | 20 GB+ |
| Access | Root SSH access | Root SSH access |
| Ports | 22, 80, 443, 7800 open | Same |
Prepare the server
SSH into your VPS as root and update all packages first:
apt update && apt upgrade -y
apt install -y wget curl
Install aaPanel
aaPanel provides a one-line installer. Run this as root:
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.
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:
# Allow aaPanel port, HTTP, and HTTPS
ufw allow 7800/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 22/tcp
ufw enable
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:
| Recommendation | Use when |
|---|---|
| LNMP (Nginx + MySQL + PHP) | WordPress, general web apps-best performance |
| LAMP (Apache + MySQL + PHP) | Apps that require Apache-specific features like .htaccess |
| Nginx only | Static 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:
- In aaPanel, go to Settings → SSL.
- Select Let's Encrypt and enter the domain/subdomain pointing to your server.
- Click Apply. The panel will reissue itself over HTTPS.
- Access the panel via
https://panel.yourdomain.com:7800going forward.
FAQ
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.Installation issues?
Contact our NOC team if you need help installing or configuring aaPanel on your VPS.





















