
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.
Download the aaPanel installation script.
Run the downloaded script.
You will be prompted to set the installation directory. By default, /var/www/ will be used if you enter Y.
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.
Confirm current firewall rules if port 8888, and other aaPanel ports are allowed:
aaPanel is now ready for configuration.
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.
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.
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.
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.
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.
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.
If the server reboots, the web panel will fails to load on port 8888. Start aaPanel using bt as the service identifier.
To confirm if the panel is running with or without errors, query the bt service status.
In this article, you learned how to install 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.
0 Comments
Be the first to comment and share your perspective with the community.