Skip to main content

WHM on AWS and networking

Comments

6 comments

  • Eminds
    You can edit the configuration as you have mentioned, instead you will need to assign an elastic IP which will be the actual IP of your instance. The reason to assign elastic IP to the instance is, every time you reboot the instance the IP of the aws instance will change
    0
  • tomdchi
    You can edit the configuration as you have mentioned, instead you will need to assign an elastic IP which will be the actual IP of your instance. The reason to assign elastic IP to the instance is, every time you reboot the instance the IP of the aws instance will change

    Thanks for the reply! An elastic IP is already assigned and is being used. I have set up WHM servers many times so I am very familiar with it but this is the first time installing on AWS. I found a couple of guides that were pretty old and none of them mentioned doing anything special other than assigning an elastic IP. Will having DHCP set cause any issues?
    0
  • cPanelLauren
    Hi @tomdchi cPanel may experience issues with IP if it's not static. You may want to contact AWS to identify the proper network configuration on their servers when running cPanel. I know I did find some other resources which address the same issue you had here: Part 2: How I Built a cPanel Hosting Environment on Amazon AWS | cPanel Blog How to fix local IP in Nat Configuration on WHM/Cpanel on Centos 6 on Google Compute Engine But if neither of these provides a resolution contacting AWS would be the best route. Thanks!
    0
  • tomdchi
    Finally found the solution! If someone else has the same problem here is what you do:
    • Edit /etc/sysconfig/network-scripts/ifcfg-eth0 with appropriate parameters to set as static.
    • Edit /etc/cloud/cloud.cfg and at the end of the file add:
    network: config: disabled
    Now cloud-init will stop overwriting your network config.
    0
  • cPanelLauren
    Hi @tomdchi I'm glad you found a solution and thank you so much for sharing it! Thanks!
    0
  • mekatech
    Hi @tomdchi cPanel may experience issues with IP if it's not static. You may want to contact AWS to identify the proper network configuration on their servers when running cPanel. I know I did find some other resources which address the same issue you had here: How to fix local IP in Nat Configuration on WHM/Cpanel on Centos 6 on Google Compute Engine But if neither of these provides a resolution contacting AWS would be the best route. Thanks!

    Bro, can you help me to understand how to add elastik ips as dedicated ips to whm for ssl purposes, cpanel is lacking a little support for that
    0

Please sign in to leave a comment.