Moving to a new server...

beelow

Registered
May 16, 2014
3
0
1
cPanel Access Level
Root Administrator
Hi,
let me first explain our setup:
namecheap [nameservers linked to cloudflare] -> cloudflare -> server with whm / cpanel
let's say the domain is example.com :)

We want to upgrade our server and move to an other hoster. I have ordered a new server with whm/cpanel
Since i need to setup the server, install some packages, config firewall and a lot of other stuff and test this and our application i need our actual server to keep running as long as we are working on the new one.
BUT what dns settings should i enter? I created a new user in whm (example.com), now i have a homedirectory for this user etc...
but i can't test sending mails (we send a lot of mails a day) and some other stuff.
How would you handle this process? And how could i easily switch to our new server when testing & config is done.

Thank you for your support, any hint is more than welcome.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

You could modify the hosts file on your personal computer so that the domain name resolves to the new server before the name servers are updated. The hosts file is documented here:

hosts (file) - Wikipedia, the free encyclopedia

Note that you may need to alter your Cloudflare configuration, or review their documentation/support to see what steps are necessary.

Thank you.
 

beelow

Registered
May 16, 2014
3
0
1
cPanel Access Level
Root Administrator
Hi Michael,
thank you for your quick response.

So the following way is right?

Create via whm a new account for my domain (example.com)
set everything up (webapplication, firewall and all the good stuff)
and when we are finished just edit the cloudflare dns settings

right now i would need the possibility to send emails. every mail gets a nice error message: no such user here.
any possible solution for this? or have i to live with that until we change the dns settings?
 

beelow

Registered
May 16, 2014
3
0
1
cPanel Access Level
Root Administrator
a quick note:
yesterday i added a subdomain and could access the public_html of my user on the new server.
today i can't access the index.html or even the index.php file. i get always the default website page ...
what a mess
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
The steps you referenced should work, but you will need to wait until the DNS propagates before email begins functioning as expected. Is there anything in particular preventing you from updating the DNS?

Thank you.