Article

Table of Contents
Theme:
Was this article helpful?
Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles.

How to Install aaPanel on Ubuntu 20.04

Last Updated: Fri, Jan 7, 2022
Control Panels Ubuntu

aaPanel is an open-source lightweight Linux control panel that provides a web interface and tools that simplify the creation of a web hosting environment. The control panel offers a straightforward web dashboard to set up websites, databases, DNS entries, mail accounts, and applications on the server.

In this article, we’ll install aaPanel on a Ubuntu 20.04 Server, then create a simple website using the web interface.

Prerequisites

Install aaPanel

  1. Download the aaPanel installation script.

    $ wget http://www.aapanel.com/script/install-ubuntu_6.0_en.sh
    
  2. Run the downloaded script.

     $ sudo bash install-ubuntu_6.9_en.sh
    
  3. You will be prompted to set the installation directory. By default, /var/www/ will be used if you enter Y.

    +----------------------------------------------------------------------
    | 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):
    

    After the installation completes, a random administrator username and password will be displayed in your console and the required aaPanel ports will be automatically configured on the firewall.

    Firewall reloaded
    ==================================================================
    Congratulations! Installed successfully!
    ==================================================================
    aaPanel Internet Address: http://example.com:8888/5b52b2f3
    aaPanel Internal Address: http://example.com:8888/5b52b2f3
    username: ***************
    password: ***************
    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!
    
  4. Confirm current firewall rules if port 8888, and other aaPanel ports are allowed:

    $ sudo ufw status
    

aaPanel is now ready for configuration.

Configure aaPanel

Copy the random secure URL from your SSH console. Paste it in your web browser and log in to the control panel using random credentials generated by the installation script.

http://your.server.ip.address:8888/your-random-string

Install a LAMP Stack

You will be required to install a web stack on your server. Both the LEMP and LAMP Stack will be displayed in a pop-up window. Select your best choice. In this article, we’ll install the LAMP stack.

Web Stack selection

The web stack installation process will start. Depending on your server specifications, the installation will take about 5 minutes to complete.

Next, the main aaPanel dashboard displays your current server resources usage, traffic, statistics, and control panel tools to configure the server.

aaPanel Dashboard

Add a Domain Name

Let’s add a new domain name and create a simple website to host on the server.

Navigate to Website on the right pane, then choose between a PHP or Node JS Project and click Add Site. Enter your domain name, a description for the website, then select your database server and PHP version to use.

To secure the website with HTTPS, click Apply for SSL, then click Submit to create your new website.

Your website will be parked with a default system page. You can change it by uploading your website files to the domain’s web files directory /var/www/wwwroot/example.com/, or install a CMS like WordPress through FTP.

Secure the Server

To secure the control panel, navigate to Settings and change the default port from 8888 to something random, then change Alias (Panel name) to your desired custom text.

Set a short timeout period of at least 360 seconds (6 minutes) to log out active users if the control panel is dormant with no user action.

aaPanel Security

Modify Security Entrance to a custom string you can use to securely access the control panel. You can not access the web panel without the security key because Security Entrance is turned on by default.

Additionally, change the administrator Panel user account and Panel Password from the random defaults provided by the installation script to your custom values. To further tighten your server security, you can optionally specify a list of authorized IP addresses that can access the web panel under Authorized IP.

Configure the System Service

If the server reboots, the web panel will fails to load on port 8888. Start aaPanel using bt as the service identifier.

$ sudo systemctl start bt

To confirm if the panel is running with or without errors, query the bt service status.

$ sudo systemctl status bt

Conclusion

In this article, you learned how to installed aaPanel on an Ubuntu 20.04 server. You can create multiple websites, FTP accounts, Email accounts, set Cron jobs, and use other tools that make web hosting possible on a virtual private server.

For more information, see the official documentation.

Want to contribute?

You could earn up to $600 by adding new articles.