CPanel on AWS

Create an AWS account

You can refer the following URL in order to create the new EC2 instance (video tutorial).

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-connect-to-instance-linux.html

The steps to install cPanel on server are as follows:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Important port to open on cPanel server are:
20 FTP
21 FTP
22 SSH
25 SMTP
26 SMTP
110 POP3
143 IMAP4
465 SMTP TLS/SSL
993 IMAP4 SSL
995 POP3 SSL
2095 Webmail
2096 Webmail SSL
53 DNS
80 HTTP
443 HTTPS
3306 MySQL
2082 cPanel
2083 cPanel SSL
2086 WHM
2087 WHM SSL
2089 cPanel license

For SSH instruction you can refer to: https://www.siteground.com/tutorials/ssh/

To allocate an Elastic IP address for use in a VPC Openc onsole at https://console.aws.amazon.com/vpc/.

In the navigation pane, choose Elastic IPs >> Choose Allocate New Address >> Choose Yes, Allocate.

First choose EC2-VPC from the Network platform list.
To view your Elastic IP addresses

Log-in at https://console.aws.amazon.com/vpc/.

In the navigation pane, choose Elastic IPs.

To associate an Elastic IP address with a running instance in a VPC

Log-in at https://console.aws.amazon.com/vpc/.

In the navigation pane, choose Elastic IPs.

Select an Elastic IP address that’s allocated for use with a VPC (the Scope column has a value of vpc), choose Actions, and then choose Associate Address.

In the Associate Address dialog box, select Instance or Network Interface from the Associate with list, and then either the instance or network interface ID. Select the private IP address to associate the Elastic IP address with from the Private IP address.