How to Launch a cPanel & WHM Instance on Amazon Lightsail

This article explains how to launch a cPanel & WHM instance on Amazon Lightsail, including selecting a region, choosing a blueprint, configuring SSH keys, selecting a plan, creating the instance, monitoring installation, setting up WHM, assigning a static IP, and managing firewall ports.

Amazon LightsailcPanel WHM SetupLaunch Instance Guide

~4 min read · Updated Mar 4, 2026

1. Overview


This guide explains how to launch a cPanel & WHM instance on Amazon Lightsail™, a simple and fast virtual machine service.




2. Launch an Amazon Lightsail Instance


Navigate to the Amazon Lightsail website and sign in to your AWS account. If you do not have an account, create one.


Click Create instance. The instance creation interface will appear.


2.1 Select Your Instance Location


Amazon suggests a default region. You can change it by clicking Change AWS Region and Availability Zone.


  • Select a region in the Select a Region section.
  • Optionally choose a specific availability zone.

2.2 Select Your Instance Image and Blueprint


  • Select the Linux/Unix platform.
  • Under Select a blueprint, choose cPanel & WHM for AlmaLinux.

Important: cPanel & WHM requires a valid license. New installations can activate a free 15‑day trial license.


Additional options include:

  • Add launch script — to customize your instance.
  • Change SSH key pair — options include:

Create New — Generates a new SSH key pair.
Upload New — Upload an existing public key.
Download — Download the private key of the default key pair.


You may also enable Automatic Snapshots to create daily backups.


2.3 Choose Your Instance Plan


Select a plan based on memory, processing, storage, or transfer.


Warning: You must choose a plan with at least 1 GB RAM. Otherwise, cPanel & WHM installation will fail.


2.4 Identify Your Instance


Enter a name for your instance. This name cannot be changed later.


You may also add tags:

  • Key‑only tags
  • Key‑value tags

2.5 Create the Instance


Click Create instance. You will return to the Lightsail console, where the instance creation process begins.




3. cPanel & WHM Installation Process


Installation begins automatically in the background.


Warning: Installation takes 10–15 minutes. You cannot log in to WHM until it completes.


3.1 Watch Installation Progress


  1. Open the Instances page.
  2. Click your instance name.
  3. Go to the Connect tab.
  4. Click Connect using SSH to view installation progress.

After installation, a one‑time startup process and the post_snapshot script will run.




4. Setting Up WHM on Your Instance


4.1 Change the Root Password


  1. Open your instance.
  2. Go to the Connect tab.
  3. Click Connect using SSH.
  4. Run the following command:

sudo passwd

Enter and confirm your new password.


4.2 Attach a Static IP Address


Lightsail assigns dynamic IPs by default. Restarting the instance changes the IP.


Important: Your cPanel & WHM license is tied to your IP address. Always assign a static IP before activating a license.


  1. Open your instance.
  2. Go to the Networking tab.
  3. Click Create static IP.
  4. Select your instance.
  5. Enter a name and click Create.

4.3 Log In to WHM


Navigate to:


https://IPADDRESS:2087/


Enter:

  • Username: root
  • Password: your new password

Agree to the license, then enter your contact and nameserver information.




5. Configure WHM


For full configuration steps, refer to the WebHost Manager documentation.


To quickly build a website on your new server, see the From WHM to Website guide.




6. Manage Your Instance


To use certain cPanel & WHM services, you must manually open specific firewall ports.


Log in to your Lightsail instance to manage firewall rules and static IP settings.




Conclusion


This guide walks you through launching, configuring, and managing a cPanel & WHM instance on Amazon Lightsail. With the correct setup—especially assigning a static IP and configuring WHM—you can deploy a reliable hosting environment quickly and efficiently.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue