How to Install cpanel on Amazon AWS EC2

How to Install cpanel on Amazon AWS EC2

  • 03 Jun, 2018
  • AWS

Steps to Install Cpanel/WHM on Amazon AWS



1. Login into aws panel

2. Click on "EC2" under "AWS Services" section

3. "Resources" page opens, click on "Launch Instance" button

4. On Left hand side "quick Start" menu click on "AWS Marketplace"

5. On Search box enter centos and press enter. Select first option i.e. "CentOS 7 (x86_64) - with Updates HVM" and
click on "select" button.

6. Click on "Continue" button on next page

7. Click on "Next: Configure Instance Details" button at bottom right of screen

8. Click on "Next" Add Storage" button at bottom right of screen

9. Click on "Next" Add Tags" button at bottom right of screen

10. Click on "Add Tag" button, In "Key" enter value "Name" and in "Value" enter "Cpanel32"



11. Click on "Next" Configure Security Group" button at bottom right of screen

12. Click on "Add Rule" to add rule

a. Select Type "HTTP" and in "Source" select "Anywhere"
b. Select Type "HTTPS" and in "Source" select "Anywhere"


13. Click on "Review and Launch" button at bottom right of screen

14. Click on "Launch" button at bottom right of screen

15. In first drop down list select "Crate a new key pair" and enter name of key e.g. "cpanelkey32" in "Key pair name" field

16. Click on "Download key Pair"

17. Click on "Launch Instance" button at bottom right of screen

18. In start menu of window type putty in search box and select "PuTTYgen", install putty if not installed

19. In "Conversions" menu select "Import Key" option

20. Select file which just downloaded



21. Select "Save private key" button

22. Click on "Yes" and enter file name e.g. "cpanelpkey24.ppk" and close window

23. Click on code under "Your instances are now launching" section

24. On bottom right hand side check IPv4 Public IP 52.66.164.157

25. Open putty

26. In host name enter public ip

27. Click on SSh, click on "Auth" and browse private key

28. Click on "Open" and then "Yes"

29. In Login enter centos

30. Enter sudo yum update


31. Type sudo yum install perl

32. Type sudo yum install WGET

33. Set Hostname for instance e.g. hostname test.nameofdomain.com

34. Set root password by running command sudo passwd root

run command su -

Set Hostname for instance e.g. hostname test.nameofdomain.com

35. run below command for cpanel installation

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

it take sometime to install


36. Click on "Security Groups" under "NETWORK & SECURITY" on left hand side

37. Select centos group, in "Inbound" tab click on "Edit" button

38. Click on "Add Rule" to add rule

a. Select Type "All Traffic" and in "Source" select "My Ip"


39. To access WHM panel copy ip address mentioned under "External Ip" and mentioned port 2087.

e.g. https://domainname:2087 or ip

https://52.66.164.157:2087


40. Enter username as "root"
Password - Use same password which you set as "Step No 34"


41. Click on "I Agree Go to Step 2" button at bottom


42. On "Contact Information" page mentioned your email id in "Server Contact Email Address"


43. Copy "Primary Resolver" ip address and paste it in "Secondary Resolver"


44. Click on "Save and Go to Step 3"


45. Click on "Save and Go to Step 4"


46. Go to Bottom of page and click on check box "Configure Address Records for Nameservers"


47. Copy ip address from "IP for Entry" and paste it in "IPv4" entry box


48. Click on check box Add "A Entries" for Hostname


49. Click on "Save and Go to Step 5"


50. Click on "Save and Go to Step 6"


51. Click on "Finish Setup Wizard"


52. Enable "PHP-FPM Service for CPanel"