What aaPanel Does
- Websites: add a domain, its document root, PHP version, and rewrite rules.
- Databases: create MySQL databases and users, with phpMyAdmin.
- Certificates: request Let's Encrypt certificates per site.
- FTP, cron, and files: accounts, scheduled tasks, and a file manager.
- App store: one-click installs of the web stack and extra tools.
Before You Install
- Fresh server only: the panel installs its own web server, PHP, and database. On a server that already runs websites it will collide with them.
- A server you can reinstall: there is no clean way to remove the panel later, so try it where a reinstall costs you nothing important.
- Supported systems: the project lists Ubuntu, Debian, and RHEL-family releases it supports. Check the current list for your release before you start.
Run the Install Script
The project's install script runs as root. Download it, read it, then run it:
wget -O install_panel_en.sh \
https://www.aapanel.com/script/install_panel_en.sh
less install_panel_en.sh
sudo bash install_panel_en.sh forum
Check the current script address and argument on the project's download page, since they have changed between versions. The script asks whether to install into /www, then installs the panel, which takes a few minutes.
The Login Details
At the end the script prints the login address, which includes a random port and a random path (the "security entrance"), plus a user name and a password. Store them in a password manager. To see them again later:
sudo bt default
The bt command alone opens a numbered menu with further tasks; sudo bt 5, for example, changes the panel password.
Lock Down the Panel
- Log in and change the user name and password.
- Change the panel port and the security entrance to new random values.
- Turn on two-step login with an authenticator app.
- Turn on HTTPS for the panel itself.
- In the firewall, allow the panel port only from your own address. With UFW:
sudo ufw allow from 203.0.113.10 to any port PANEL_PORT proto tcp. Or close it entirely and reach it through an SSH tunnel.
Ports 80 and 443 stay open for websites, and SSH should allow key login only. The project's guide also lists 888 (phpMyAdmin) and 20 and 21 (FTP): open them only from your own address, and only if you use them. How tunnels work is explained in SSH port forwarding.
Install a Web Stack
On first login the panel offers a stack: LNMP (Nginx) or LAMP (Apache), with MySQL or MariaDB, PHP, and phpMyAdmin. Choose one web server, not both, and only the PHP versions you need. Each extra component uses memory and needs updates.
Where It Puts Things
| Path | Holds |
|---|---|
/www/server | Panel and its software |
/www/wwwroot | Website files |
/www/wwwlogs | Web server logs |
/www/backup | Panel backups |
The panel installs its own builds of the web server, PHP, and database instead of the distribution's packages, so apt upgrade or dnf upgrade does not update them: watch for updates inside the panel. Keep backups off the server too; see how to back up a Linux server.
Removing It
The panel changes the system in many places. Removing it and getting back to a clean server is hard, and the reliable way back is to reinstall the operating system. Take that into account before you put live sites on it.
Other Panels to Compare
If you are still choosing, compare it with CyberPanel, HestiaCP, and CloudPanel, which cover similar ground with different web servers and designs.