Transfering accounts to a different server issue

mythprod

Registered
Jan 31, 2019
2
0
1
Kansas
cPanel Access Level
Root Administrator
Hi all, first post here and not sure if this is the right forum. I'm transferring my sites managed via WHM / Cpanel from one server to another. It's just a hosting provider switch, running on CentOS 7.5. My old server had 5 dedicated IPs all pointing at the same server. My new server has only one IP. I have everything set up in WHM / Cpanel set up to use the new IP and some sites are working. One of the sites using a dedicated IP is not, so I need help on coming up with things to check or at least start checking some log files. I have root access to both boxes. I keep hitting the cgi-sys/defaultwebpage.cgi script on the sites that aren't working and I can't figure out what is still misconfigured - like what area of WHM / Cpanel would care about dedicated IPs? I feel like I'm fighting WHM / Cpanel vs. apache or centOS and just need help on what to check for. We did a complete transfer of WHM / Cpanel from one server to another and it's looking like everything came over okay and like I said above some sites are working fine. It seems related to the addon domains and parent domain that previously had a dedicated IP pointed at it. If we could start there with the ideas that might be ideal!

TIA!

Dave
 

Jarvis421

Member
Nov 20, 2018
15
2
3
Kochi, India
cPanel Access Level
Root Administrator
Hello Dave,

Welcome to cPanel forums.

IP mismatch in DNS and Apache configuration can cause such issues. Just check and ensure that A record of domains that have issue are matching IP in httpd.conf new server.

You can check A record of domains using : Dig (DNS lookup)

To check IP of domain in httpd.conf, SSH to the new server and run following command :

Code:
grep -4 www.yourdomain.tld /etc/apache2/conf/httpd.conf
 

mythprod

Registered
Jan 31, 2019
2
0
1
Kansas
cPanel Access Level
Root Administrator
You're absolutely right. Something is putting local IPs in there for the domains that aren't working. Can I edit the httpd.conf directly or should I go back into WHM and fix it in the interface somewhere? Because we've been in the interface already and didn't see these assigned. I'm not sure how local IPs got there the IP address isn't familiar to me. Is it some NAT setting maybe putting it there? I'm okay with editing the httpd.conf file if that's the thing to do at this point. Any advice there?

Thanks!!