aaPanel is one of the best easy-to-use and free web hosting control panels available today. In this tutorial we will guide you on how to install aaPanel on Ubuntu or CentOS. aaPanel is offered by the Chinese developers of BT.CN.
aaPanel is very user friendly and offers a GUI for most essential Linux server tasks. It is an open source web hosting panel with many great free features including: file editor, uploader, file manager, backups, multi-PHP support, PHP INI editor, database management, multiple websites, free SSL, and more. It also includes NGINX with a preconfigured firewall.
Following this tutorial you can install aaPanel on Ubuntu 16.04, 18.04, 20.04 and Debian. Commands for CentOS installation are also included below.
Prerequisites
- Minimum disk space 20GB
- Fresh installed Ubuntu or CentOS server
- Minimum RAM 1GB
- Minimum 1 vCPU
- SSH access to the server
Installation
Let's start the installation. First, log in to the server via SSH using PuTTY or any other SSH client. The installation process is straightforward. Switch to root if you are not already the root user:
sudo su -
Update your operating system packages:
apt-get update; apt-get upgrade -y;
Download and Install aaPanel
Run the following command to download and install the aaPanel installation script on Ubuntu / Debian:
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh
For CentOS, run these commands instead:
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh
Installation Prompts
The installation script will ask you the following questions:
Do you want to install aaPanel to the /www directory now? (y/n): y
Do you need to enable the panel SSL? (yes/n): n
After Installation
After installation completes, a random administrator username and password will be displayed in your console. Make sure to note them down. The output will look like this:
===================================
Congratulations! Installed successfully!
===================================
aaPanel Internet Address: http://example.com:7800/5b52b2f3
aaPanel Internal Address: http://example.com:7800/5b52b2f3
username: ***************
password: ***************
Warning:
If you cannot access the panel,
release the following port (7800|888|80|443|20|21) in the security group
===================================
Time consumed: 3 Minute!
Accessing aaPanel
Open your browser and navigate to the aaPanel Internet Address shown in your console. It will look like:
http://example.com:7800/5b52b2f3
Enter your username and password and click Login. Once inside the control panel, you will be prompted to install LNMP or LAMP. LNMP is always recommended for production use. Select Compiled if you plan to use the server for production websites.
Installation will take a few minutes to complete. Once done, you can enjoy one of the fastest and easiest control panels available for hosting your websites.
You can now add your website to Cloudflare and connect it to aaPanel to get started.