Amazon Web Services Installer
On this page, we explain step by step how to install CloudPanel on an EC2 instance on Amazon Web Services.
#
Launching an EC2 InstanceLog in to the AWS Management Console.
Go to the EC2 Service, and click on Launch Instances.

#
Name and tagsEnter the name of your EC2 Instance, e.g., my-cloudpanel-instance.

#
Choose Operating System- Select Ubuntu 22.04 or Debian 11 as OS Image. Both Architectures x86 and ARM are supported by CloudPanel.

#
Instance TypeChoose an instance type and ensure that it fits the minimum requirements.

#
Key pair (login)Select a Key pair or Create a new key pair to log in via SSH after launching the instance.

#
Network settings- Click on Edit to make changes on the Network Settings.

- Select the VPC, Subnet, and enter a Security Group Name and Description.

#
Inbound security groups rulesCloudPanel Firewall
All pre-configured CloudPanel Firewall Rules are not needed and should be removed.
If you want to use the CloudPanel integrated firewall for whitelisting ports, create a security group with one rule which allows All TCP.
In that case, all traffic is filtered by the CloudPanel Firewall and not by AWS.
Create a Security Group with the following rules:
- SSH (22) - For your IP only
- HTTP (80) - For everyone
- HTTPS (443) - For everyone
- CloudPanel (8443) - For your IP only

#
Configure StorageConfigure as minimum 10 GB disk size and select gp3 (Latest SSD generation).

#
Launch InstanceClick on the button Launch Instance to launch the instance.

#
Create Elastic IP AddressA static IP (Elastic IP Address) is needed for running web applications.
To create an Elastic IP Address click in the left navigation on Network & Security --> Elastic IPs.
Click on button Allocate Elastic IP address to create an Elastic IP Address.
Select the Allocated IP Address and Associate it to your launched instance.

#
Install CloudPanelAfter launching the EC2 Instance, log in with SSH and run the installer script.
- Ubuntu 22.04 LTS
- Debian 11 LTS
- Login via SSH to the EC2 Instance.
ssh -i path_to_your_private_key.pem ubuntu@yourElasticIpAddress
- Switch to the root user:
sudo su root
- Update the system and install the required packages.
apt update && apt -y upgrade && apt -y install curl wget sudo
- Run the installer with your preferred Database Engine.
- MySQL 8.0
- MariaDB 10.11
- MariaDB 10.6
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws bash install.sh
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws DB_ENGINE=MARIADB_10.11 bash install.sh
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws DB_ENGINE=MARIADB_10.6 bash install.sh
- Login via SSH to the EC2 Instance.
ssh -i path_to_your_private_key.pem admin@yourElasticIpAddress
- Switch to the root user:
sudo su root
- Update the system and install the required packages.
apt update && apt -y upgrade && apt -y install curl wget sudo
- Run the installer with your preferred Database Engine.
- MySQL 8.0
- MySQL 5.7
- MariaDB 10.11
- MariaDB 10.6
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws bash install.sh
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws DB_ENGINE=MYSQL_5.7 bash install.sh
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws DB_ENGINE=MARIADB_10.11 bash install.sh
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \sha256sum -c && sudo CLOUD=aws DB_ENGINE=MARIADB_10.6 bash install.sh
#
Access CloudPanelSecurity
For security reasons, access CloudPanel as fast as possible to create the admin user. There is a small time window where bots can create the user. It's highly recommended to open port 8443 only for your IP via security group.
You can now access CloudPanel via Browser: https://yourElasticIpAddress:8443
Ignore the self-signed certificate warning and click on Advanced and Proceed to continue to CloudPanel.
