AWS EC2 & cPanel (Part one)

Sohag HasanSohag Hasan
3 min read

Disclaimer: This process can cost money. DO IT AT YOUR OWN RISK.

Pre-check List

  1. cPanel account

  2. AWS Account (Credit Card required)

System Requirement

Operating system and versionProcessorRAMDisk Space
Ubuntu 22.04 LTS 64-bitMinimum: 1.1 GHz Recommended: 2 GHzMinimum: 2 GB Recommended: 4 GBMinimum: 20 GB Recommended: 40 GB

Important Note

  • We do not provide an uninstaller. If you wish to remove our software, you must reformat the server.

  • Only install cPanel & WHM on a freshly-installed operating system.

  • You must log in to the server as the root user in order to install cPanel & WHM. If you do not possess root-level access, contact your system administrator or hosting provider for assistance.

  • We recommend that you use the cPanel & WHM installer, which installs all of the services that it requires. If you install services before you install cPanel & WHM, you will encounter compatibility issues.

    — cPanel Docs

AWS EC2 Setup

  1. Login to AWS Console: https://console.aws.amazon.com

  2. Choose your nearest region from top right corner

    AWS Region Selector

  3. After selecting the Region, search for EC2 in the search box and click on EC2

    Select EC2 in AWS

  4. Look for “Launch Instance” button and Click it

    Launch Instance button in AWS

  5. Enter a name [1], OS[2] Ubuntu, Version[3] 22.04 LTS, Architecture[4] 64-bit (x86)

  6. Now choose instance type t2.medium as we need 4GB of RAM

  7. Now generate Key Pair to login into our VPS with SSH and Save it for future use.

  8. Now allow all traffic from the internet. And keep SSH Traffic from anywhere for now.

  9. Add 40GB storage

  10. Now our summary should look like this. Click Launch Instance

  11. Once the instance is launched, it’ll look like this. Click on the instance ID to open the instance list.

  12. Click on the Instance ID to open the instance control panel

  13. This is how the control panel look

  14. The public IP assigned here will be changed if the instance restarts. So we will add a elastic IP. Click on the “Elastic IPs” menu link under “Network & Security”

  15. Now click on Allocate “Elastic IP Address”

  16. Now click on allocate

  17. Click on IP address to open the Elastic IP control panel.

  18. Click on “Associate Elastic IP Address” to open the assignment panel

  19. Now choose instance and click associate

  20. We are done. Now lets login into the VPS with SSH.

Continue in part 2 . . .

0
Subscribe to my newsletter

Read articles from Sohag Hasan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sohag Hasan
Sohag Hasan

WhoAmI => notes.sohag.pro/author