In our dedicated server even we run “/usr/local/cpanel/bin/set_hostname” from SSH as ROOT all notifications from the server has wrong hostname URL. The problem remains only in notification mails and sometimes HTTPS URLs (but this one is cause of local DNS records i guess).
We already did:
- Changed hostname from WHM
- Changed RDNS records
- Fixed etc/hosts
- Run /usr/local/cpanel/bin/set_hostname [hostname]
- Fixed WHM api1
- Reboot 🙂
- Read StackOverflow
So can anyone offer a solution for this issue?
2
Answers
Editing wrong hostname values in one of the files Apache uses to build it's main configuration file "/var/cpanel/conf/apache/main" have solved the issue.
This solution had come from cPanel Customer Support. Hope it helps.
in my case I edit “/etc/hosts” and remove old host name attached to server ip.