How to Migrate WHM From Third Party Providers to AWS
March 13, 2019 / Eternal Team
Here, we are going to describe the steps which you will need to go through to essentially, install your personal WHM Server on AWS Infrastructure and migrate cPanel Accounts from existing third party WHM hosting providers to your personal WHM Server…
Benefits of having your WHM server hosted in AWS Infrastructure
- Full control over the Compute and Storage capacity of the Server, third party service providers provide you a shared Hosting Server were the Compute Capacity control is not in your hand and you are charged for unnecessary extra capacity.
- Can create unlimited cPanel Hosting A/Cs which are limited only by the Storage Capacity of the Server, which can be increased any time.
- Can configure the Server related to your custom requirement as per your personal taste, third party service providers lock you from features which can overwrite the changes made by the provider.
- Can setup the Backup as per your wish to either s3 bucket or any other third-party solution, third party service providers lock you by either forcing to use their in-home backup service or not providing any backup service at all.
- EC-2 – server with a minimum of 2-GB RAM and at-least 40-GB of Storage
- rpm Distribution based OS – centOS-7 or latest centOS is recommended for the installation
- Elastic-IP – assign the IP to your WHM instance before starting installation so that the IP does not change on reboot
- Domain Name
- registered from any third party domain reseller as well as if from Route-53
- point the domain to the whm Server before starting the installation and wait for the TTL to complete and point to the elastic-IP of the ec2-instance
- Route-53 – To host the domain name inside the AWS eco-system for better operability and seamless integration
- Launch an Instance from the AWS console keeping in mind the requirements listed above
- You will also need to configure the Security Group for the Instance as WHM needs some specific PORT access and it is highly insecure to keep all the ports open to the WORLD, please go through this page to see what all you will need to do
- You will need to setup the hostname of your Instance to the domain name on which WHM will run (login as ROOT user for smooth installations and configurations)
- # hostnamectl set-hostname whm.domain.tld
- install “perl” packages if they are not installed beforehand, as cPanel is written in perl
- # yum install perl
- install “curl” packages, as you do not have to run any commands to install whm-cPanel, there is an auto-installer script built for you. All you have to do is download the cPanel installer script with the curl command
- # yum install curl
- Download the latest installer script
- # curl -o latest -L https://securedownloads.cpanel.net/latest
- This command will save the auto-installer script in your current directory with the file-name “latest”
- Before running this script through SSH, increase your SSH timeout to at-least/greater than 2 Hours as the script will take at-least 40-60 mins to execute and complete the installation depending on server resources and internet connection speeds
- Now, run the auto-installer script
- # sh latest
Verifying archive integrity… All good.
Uncompressing cPanel & WHM Installer…..
___| _ \ __ _ _ __ ___| |
/ __| |_) / _` | ‘_ \ / _ \ |
| (__| __/ (_| | | | | __/ |
\___|_| \__,_|_| |_|\___|_|
Installer Version v00061 r019cb5809ce1f2644bbf195d18f15f513a4f5263
Beginning main installation.
2019-03-13 04:52:33 720 ( INFO): cPanel & WHM installation started at: Sat Mar 13 04:52:33 2019!
2019-03-13 04:52:33 721 ( INFO): This installation will require 20-50 minutes, depending on your hardware.
2019-03-13 04:52:33 722 ( INFO): Now is the time to go get another cup of coffee/jolt.
2019-03-13 04:52:33 723 ( INFO): The install will log to the /var/log/cpanel-install.log file.
2019-03-13 04:52:33 724 ( INFO):
2019-03-13 04:52:33 725 ( INFO): Beginning Installation v3…
2019-03-13 04:52:33 428 ( INFO): CentOS 6 (Linux) detected!
2019-03-13 04:52:33 444 ( INFO): Checking RAM now…
2019-03-13 04:52:33 233 ( WARN):
2019-03-13 04:52:33 233 ( WARN): To take full advantage of all of cPanel & WHM’s features,
2019-03-13 04:52:33 233 ( WARN): such as multiple SSL certificates on a single IPv4 Address
2019-03-13 04:52:33 233 ( WARN): and significantly improved performance and startup times,
2019-03-13 04:52:33 233 ( WARN): we highly recommend that you use CentOS version 7.
2019-03-13 04:52:33 233 ( WARN):
2019-03-13 04:52:33 233 ( WARN): Installation will begin in 5 seconds.
This process will massively modify your operating system, and this is how the auto installer script works
- It examines multiple packages and ensures that there will be no conflicts and if it finds any package conflicts, it will uninstall the previous packages and updates and then start a fresh reinstall with compatible packages on a Fresh OS
- It downloads required language and base files for installation
- It will install multiple PHP modules using CPAN and other required packages using yum
- It will download and compile PHP and Apache with other multiple associated modules
- When the installation finally completes, the Installation Wizard will prompt you to RESTART the Server
- After restarting the ec2-Instance you can access your WHM Service by going to
You will need to enter “root” in Username and “” in password to start viewing the WHM Console
Now, you have officially Installed a WHM Service in your EC2 Instance, and can create multiple cPanel Accounts to launch different websites as well