Install AaPanel on an IPv6-only Server
AaPanel is a free, open-source web hosting control panel designed to simplify server management. It provides a user-friendly web interface for managing websites, databases, security configurations, and web server settings (e.g., Nginx, Apache) through one-click installations and an intuitive dashboard.
This tutorial provides a step-by-step guide to installing AaPanel on an IPv6-only server, with specific commands for Ubuntu, Debian, and CentOS environments. It includes preparation steps, installation commands, access instructions, and additional tips for dual-stack configurations.
Tested environment:
- Operating System: Ubuntu 22.04
- Machine: VirtualLabs Large
Preparation
Update the Package List
- Ubuntu, Debian
- CentOS
sudo apt update -y && sudo apt upgrade -y
sudo dnf update -y && sudo dnf upgrade -y
Note for Dual Stack
If you are using VirtualLabs Medium (dual-stack), it is recommended to temporarily disable IPv4 in your network configuration before installation. This will ensure that AaPanel assigns an IPv6 public IP.
To remove your private IPv4 address, use the following command:
- Ubuntu, Debian
- CentOS
ip address del <your_private_IPv4>/24 dev eth0
ip address del <your_private_IPv4>/24 dev eth0
To restore your private IPv4 configuration, simply reboot the machine. Cloud-init will reconfigure both IPv4 and IPv6 automatically.
Install the AaPanel (Free Edition)
The following script is provided by AaPanel. Official Download Link
Supported Operating Systems for version 7:
- Ubuntu 20, 22, 24
- Debian 11, 12
- CentOS 9
Recommendation: Use Ubuntu 22.04 LTS
This script works best on a fresh and clean operating system.
Run the following command in your terminal:
- Ubuntu, Debian
- CentOS
URL=https://www.aapanel.com/script/install_7.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL" ;else wget --no-check-certificate -O install_7.0_en.sh "$URL";fi;bash install_7.0_en.sh aapanel
URL=https://www.aapanel.com/script/install_7.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL" ;else wget --no-check-certificate -O install_7.0_en.sh "$URL";fi;bash install_7.0_en.sh aapanel
Once the installation is complete, it will display the access credentials. Be sure to securely store this information.
aaPanel Internet Address
: https://[your_public_ip]:34891/random_valueaaPanel Internal Address
: https://:34891/random_valueUsername
: random_usernamePassword
: random_password
Access the AaPanel Dashboard
You can access the AaPanel Dashboard using the URL provided by the script, labeled as the aaPanel Internet Address
. Ensure your connection supports IPv6.
Log in with the credentials (username
& password
).
Onboarding Dashboard
After logging in, you will see several pop-up screens:
- Choose the Web Server Stack (Nginx or Apache) for a one-click installation
- Log in to your AaPanel account (optional; you can skip this step)