How to Install aaPanel on Ubuntu 20.04

How to Install aaPanel on Ubuntu 20.04

aaPanel is an open-source and lightweight server control panel used for managing a web hosting environment. It is a simple and alternative to other famous control panels including, cPanel, VestaCP, etc. It comes with a simple and user-friendly web UI that makes your job easier for managing web hosting environment. It consumes very low resources and offers an auto-installer that allows you to install multiple apps with one click. It offers a rich set of features including, File manager, SSL, Cron, Firewall, FTP, Mail, Databases, DNS and Web domain.

In this post, we will show you how to install aaPanel on Ubuntu 20.04 VPS.

Prerequisites

  • An Ubuntu 20.04 VPS (we’ll be using our SSD 2 VPS plan)
  • Access to the root user account (or access to an admin account with root privileges)

Log in to the Server & Update the Server OS Packages

First, log in to your Ubuntu 20.04 server via SSH as the root user:

ssh root@IP_Address -p Port_number

You will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the admin account if necessary.

Before starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You can do this by running the following commands:

apt-get update -y
apt-get upgrade -y

Install aaPanel

aaPanel provides an auto-installation script that you can download from the aaPanel website. You can also download it using the following command:

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh

After downloading the aaPanel installer script, run it using the following command:

bash install.sh

You will be asked to provide the installation directory:

+----------------------------------------------------------------------
| aaPanel 6.0 FOR CentOS/Ubuntu/Debian
+----------------------------------------------------------------------
| Copyright © 2015-2099 BT-SOFT(http://www.aapanel.com) All rights reserved.
+----------------------------------------------------------------------
| The WebPanel URL will be http://SERVER_IP:8888 when installed.
+----------------------------------------------------------------------

Do you want to install aaPanel to the /www directory now?(y/n): y

Type y and hit Enter to start the installation. Once the installation has been finished, you should see aaPanel access URL with admin username and password:

==================================================================
Congratulations! Installed successfully!
==================================================================
aaPanel Internet Address: http://your-server-ip:8888/fae893fe
aaPanel Internal Address: http://your-server-ip:8888/fae893fe
username: 4ng4rix0
password: 461b3ed5
Warning:
If you cannot access the panel, 
release the following port (8888|888|80|443|20|21) in the security group
==================================================================
Time consumed: 3 Minute!

By default, aaPanel runs on port 8888. You can check it using the following command:

ss -antpl | grep 8888

Output:

LISTEN    0         128                0.0.0.0:8888             0.0.0.0:*        users:(("BT-Panel",pid=18902,fd=5)) 

During the installation process, aaPanel enables and configures the UFW firewall and allows necessary ports through the firewall. You can check them with the following command:

ufw status

You should see the following output:

Status: active

To                         Action      From
--                         ------      ----
888/tcp                    ALLOW       Anywhere                  
20/tcp                     ALLOW       Anywhere                  
21/tcp                     ALLOW       Anywhere                  
22/tcp                     ALLOW       Anywhere                  
80/tcp                     ALLOW       Anywhere                  
39000:40000/tcp            ALLOW       Anywhere                  
8888/tcp                   ALLOW       Anywhere                  
888/tcp (v6)               ALLOW       Anywhere (v6)             
20/tcp (v6)                ALLOW       Anywhere (v6)             
21/tcp (v6)                ALLOW       Anywhere (v6)             
22/tcp (v6)                ALLOW       Anywhere (v6)             
80/tcp (v6)                ALLOW       Anywhere (v6)             
39000:40000/tcp (v6)       ALLOW       Anywhere (v6)             
8888/tcp (v6)              ALLOW       Anywhere (v6)       

Access aaPanel Web UI

You can now access the aaPanel web UI using the URL http://your-server-ip:8888/fae893fe. You will be redirected to the aaPanel login page.

Provide your username, password and click on the Login button. You should see the following page:

Install LEMP Stack

Now, select the LEMP stack as shown below:

Then, select the service that you want to install with the LEMP stack and click on the One Click. Once the installation has been finished. You should see the following page:

Now, we will install some PHP extensions to the server.

Click on the App Store => Installed button. You should see the following page:

Now, click on the Setting under PHP7.4. You should see the following page:

From here, you can click on the Install extensions and install your required PHP extensions.

Add Your Domain and Create a Website

First, you will need to configure DNS records for your domain. You will need to go to your domain registrar website, create an A record and point your aaPanel server IP to your domain name.

Next, go to the aaPanel, click on the Website. You should see the following page:

Click on the Add button to add your domain name. You should see the following page:

Provide your domain name, website root directory path and click on the Submit button. You should see the following page:

Now, click on your website => SSL. You should see the following page:

Click on the Let’s Encrypt tab, select your domain name and click on the Apply button to secure your website with Let’s Encrypt SSL.

You can now access your newly created website securely using the URL https://your-domain.com.

Congratulations! you have successfully installed aaPanel on Ubuntu 20.04.

On another note, you don’t have to install aaPanel if you use one of our excellent Managed Hosting packages. As our user, you can simply ask our expert Linux admins to install aaPanel on Ubuntu 20.04 for you. Our customer support is available 24/7, all year long, and will take care of your request immediately.

If this post on how to install aaPanel on Ubuntu 20.04 helped you in any way, you can share it with your friends on the social networks using the buttons on the left, or simply comment your appreciation in the comments below. Thanks.

Leave a Comment