Step 1 - Install aaPanel
Download the aaPanel installation script.
wget http://www.aapanel.com/script/install
Run the downloaded script.
sudo bash install-ubuntu_6.0_en.sh
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
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/042cb80b
aaPanel Internal Address: http://example.com:8888/042vb80b
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!
Confirm current firewall rules if port 8888, and other aaPanel ports are allowed:
sudo ufw status
Step 2 - 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:8888/your-random-string
Step 3 - 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.
Step 4 - 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/.
Step 5 - 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.
Step 6 - 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