I've got it up and running now. I did the following:
While creating your EC2 Instance make sure you allow incomming ports 2030 and 2031.
1st install wget:
# sudo yum install -y wget
2nd set your static hostname:
Update the /etc/hostname file on your RHEL 7 or Centos 7 Linux instance with the new hostname.
# sudo vim /etc/hostname
Replace the existing text with the hostname that you want the instance to use even after a restart or reboot.
your_hostname
Save and exit the vim editor.
Note
After making this change, press SHIFT + : [colon] to open a new command entry box in the vim editor. Type wq, and then press Enter to save changes and exit vim.
Update the /etc/hosts file on your RHEL 7 or Centos 7 Linux instance with the new hostname.
# sudo vim /etc/hosts
Change the entry beginning with 127.0.0.1 to read as follows:
127.0.0.1 your_hostname localhost.localdomain localhost
Save and exit the vim editor.
Update the /etc/sysconfig/network file on your RHEL 7 or Centos 7 Linux instance.
# sudo vim /etc/sysconfig/network
Update the /etc/sysconfig/network file with the following values:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=your_hostname
Save and exit the vim editor.
Update the /etc/cloud/cloud.cfg file on your RHEL 7 or Centos 7 Linux instance.
# sudo vim /etc/cloud/cloud.cfg
Append the following string at the bottom of the file to ensure that the hostname is preserved between restarts/reboots.
preserve_hostname: true
Save and exit the vim editor.
Run the following command to reboot the instance to pick up the new hostname:
# sudo reboot
After you reboot the EC2 instance, run the Linux hostname command without any parameters to verify that the hostname change persisted.
# hostname
The command should return the new hostname.
your_hostname
After you've set your hostname correctly enable the optional and extra yum repo's:
# sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
Install the EPEL Repo as well
# sudo yum install epel-release
If this doesn't work do the following:
# cd /tmp
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# ls *.rpm
# sudo yum install epel-release-latest-7.noarch.rpm
Update your EC2 instance
# sudo yum update
Install CentOS Webpanel according to the installation guide!
# cd /usr/local/src
# wget http://centos-webpanel.com/cwp-el7-latest
# sh cwp-el7-latest