WHM/cPanel/Webmail not accessible but IP&hostname+Port works

Operating System & Version
CENTOS 7.9 xen hvm [host]
cPanel & WHM Version
92.0.9

batchat

Registered
Sep 20, 2018
2
0
1
91708
cPanel Access Level
Root Administrator
Dear all,

First of all, I am testing migrating our company's cPanel Email server to AWS.
I have successfully configured demo hostname with Route 53, configured an EIP associated with the email server, and setup the ec2 with cPanel AMI.

Then the problem is, when I am trying to shut down the server and perform an AMI recover using one of my snapshots. (I also reattach the EIP) Everything works, but I cannot access to cpanel/whm/webmail.hostname.net. However, IP & hostname + port (xxx.xxx.xxx.xxx:2087 or host.domain.net:2087) works.

I have attached the error page when accessing whm.domain..net.

Any advice would be appreciated, thanks!

Best,
batchat
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,251
534
273
cPanel Access Level
Root Administrator
Hello! This seems to indicate an issue with the DNS configuration or the hostname on that machine. I do see your domain name has DNS for the whm subdomain, but it seems that nothing on the server is currently listening for that connection.

Do you have an account created on the server for that domain name already? If not, Apache would not know how to handle the request and you'd run into that "Sorry" page that you're seeing.
 

batchat

Registered
Sep 20, 2018
2
0
1
91708
cPanel Access Level
Root Administrator
Dear cPRex,

Thank you! Previously everything is working fine (before switching/shuting down the original server). After swithcing, I can still send/receive emails but DNS Apache is not working.

Followed your sugguestion, I checked that in WHM, Apache Configuration > Reserved IP Address Editor and my new ec2 instance private IP is not linked with the public IP (same Elastic IP of AWS, I have linked everything, DNS, SSL with that EIP). It was shown grey and the system indicates that

"IPs that are greyed out are not currently up on the server's main interface. To reserve new IPs not found in this list, please add the IP to the server and return to this page."

So I linked it and restart the Apache service and evrything works well. Plus I need to re-configure the SSL for the domain again.

You saved me from struggling for days! Thank you!

Best Regards,
batchat