- If you have CWPpro licence, first change IP to new one at https://support.centos-webpanel.com/clientarea.php and then follow following steps
- Create/update reverse DNS in your VPS provider. That would be your new hostname.
- Create nameservers with new IP in Domain registrar.
- Go to CWP Settings and then IP Manager and add the new IP address with Netmask and Gateway. Note that you have to configure the VPS with new IP and test it accordingly.
- Go to Server Settings and then Change Hostname and replace New Hostname with rDNS/PTR records of your Default/New IP. Confirm that everything here looks ok.
- Go to User Accounts and then List Accounts and you need to go to “Edit Account” section of all accounts on your server and replace IP field with Default/New IP Address (you also must check the “Update DNS Zone” checkbox). Test one account first and if it works then go for all accounts. SSL may cause but will be resolved automatically. You may have to use VPN to test.
- Go to CWP Settings and then Edit Settings and replace Shared IP field with Default/New IP Address. Check the “Rebuild vHosts” check box and save changes.
- Go to DNS Functions and then Edit Nameservers IPs and replace all NS1 and NS2 IPs with Default/New IP Address.
- After completing all of the above, rebuild WebServer in order to prevent future issues , So you need to Go to Apache Settings and then Apache Re-Build and recompile your apache webserver
- If you were using Varnish Cache or Nginx Reverse Proxy you must have to Go to Apache Settings and then Select WebServers and select Default Web Servers which you were using and Click on “Save & Rebuild Configuration“.
- if you were using MailServer you should Rebuild your MailServer. Go to Email and then MailServer Manager and Rebuilt Mail Server. If you need to restart all mail server services (Postfix, ClamAV, Amavis, Spamassassin, Dovecot) you can do that here.
- Reboot your server
- Enjoy!