The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moving to a new server...

Discussion in 'General Discussion' started by beelow, May 16, 2014.

  1. beelow

    beelow Registered

    Joined:
    May 16, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. beelow

    beelow Registered

    Joined:
    May 16, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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?
     
  4. beelow

    beelow Registered

    Joined:
    May 16, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page