Complete command-line installation guide for Aapanel on Ubuntu Server 18.04/20.04/22.04
Set your server hostname before installation:
hostnamectl set-hostname server1.fluxnoor.com
Update and upgrade your Ubuntu system packages:
apt update && apt upgrade -y
Install Aapanel with one command:
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel
During installation, confirm when prompted:
Do you want to install aaPanel to the /www directory now?(y/n): y
Press y then Enter to continue.
After installation, you'll see:
Congratulations! Installed successfully! ================================================================== aaPanel Internet Address: http://YOUR_SERVER_IP:7800 aaPanel Internal Address: http://YOUR_SERVER_IP:7800 username: admin password: xxxxxxxx ==================================================================
Visit http://your-server-ip:7800
Choose LNMP or LAMP from panel
Change default password immediately
Use 'bt' command for management
bt
Main Aapanel command-line tool
bt restart
Restart Aapanel service
bt default
Show default login info
bt 8
Change panel port
bt 14
Show panel port info
firewall-cmd --permanent --add-port=7800/tcp && firewall-cmd --reload
Open panel port in firewall
hostname
Check current hostname
hostnamectl set-hostname NEW_HOSTNAME
Change hostname anytime