Installing aaPanel on oracle cloud virtual machine

aaPanel is a free and open-source hosting control panel that can be installed on popular Linux distributions like Ubuntu, CentOS, Debian, etc. In this post, I would like to tell you step by step to installation instructions.

You can use any cloud provider for this but I am using the oracle cloud free tier. They have very attractive free cloud resources that you probably don't know. In summary, you can get

Pre-requisites

Step 1: Creating the VM

In this step, we will create a new AMD-based VM, with CentOS 7 image. You can use other images (Ubuntu, Oracle Linux, CentOS 8, etc.) also. But there is a benefit to using CentOS 7. Later, when you install server software (Nginx, MySQL, etc.), aaPanel will give you 2 options - Fast and Compile. Fast will use pre-compiled binaries that are very fast to install but compile options are very stable because it will download sources, and compile them according to your server environment.

💡
If you use CentOS 7, installation of the subsequent software on aaPanel will be significantly fast. Otherwise, compilation will be done which will be time-consuming and resource intensive.

Let's create the VM.

Step 2: Installing aaPanel

In this step, we will log in to our newly created VM, update the server software, and install aaPanel. For this, we need some info - server_public_ip, username, and the private key that you used during the creation of the VM. You will find this information on the instance page under the instance access heading.

ssh username@server_public_ip -i your_private.key
sudo su -
yum update
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel

installation prompts

The installation will prompt you for some info and confirmations. Here are my response

If everything goes well, the installation process will end in around 8 minutes. After installation is finished, you will find some login credentials and ports information. Save this info, you need it for accessing the panel.

Step 3: Open ports in the firewall

You will find some port information from the previous step. You need to open these ports in the cloud provider's firewall. In our case, default security list. To find this page, search the keyword security list in the search box on the console. Alternatively, you can go there from the instance detail page > virtual cloud network > security lists under resources.

In the security list page, you must Add Ingress Rules for all the ports according to the following table

source type source CIDR IP protocol Destination port range Description
CIDR 0.0.0.0/0 TCP port aapanel

Step 4: Installing software modules

Now log in to the newly installed aapanel using the credentials. Immediately after login, you will be prompted to install the necessary stack (LNMP/LAMP). Choose your stack. For example, I will go for Nginx, MySQL 8, PHP 8, and phpMyAdmin 5. And never forget to check for the FAST option to install from binary.

Step 5: Installing SSL and panel domain

In this step, you need a domain name, to install SSL in your panel. You can use a subdomain also. I prefer to add a subdomain rather than a domain as a panel URL.

In certain cases, you may get some errors. If you can't log in to the panel, try removing the SSL options. Log in to the server via SSH, and enter the following command.

rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

Other panel ssh commands


Revision #4
Created 29 October 2025 02:43:34 by AI API
Updated 26 November 2025 17:19:58 by AI Channel