I am going to switch to a more powerful dedicated server. I have custom nameservers and my domain center is godaddy. Any special tips? 1. When I update DNS will there be a point where the users will not be able to access NEITHER of the servers? 2. Only one database should be accessed. So I'm guessing I could make a connection between 2 servers and have the new server connect to the old DB until the DNS have updated. Anyone knows how that can be done? Both servers are up and running already. I just want to make a silent switch and not disturb the users.
1. Nope. As long as it's done correctly, your users will see either the old or new until the TTL on the old expires. Then, only the new will be seen 2. Allow the old server IP to connect to your new database, then in the old server's script, change the connection from localhost to your new server IP. Jay
When doing something like this, there's a little bit of a procedure I like to follow. It's painless, and it works to prevent problems. Transfer the web files (php, etc) Shutdown the website (temporarily) to dump SQL from server A to server B Make sure that server A (old server) can access the db on server B Edit site configuration, pointing the 'localhost' in server A (old server) to ip address of server B , for mysql Turn site back on Make sure site works on server B (usually, calling the IP directly works) Change DNS on server A (old server) Copy DNS records from server A to server B Restart DNS on both servers Change entries @ your registrar (glue) This may look like a lot, but it's really not, and it's the best way to ensure minimal downtime (if any at all) on your website.
Thank you both. To twhiting9275: About this part: I don't understand the deal with DNS very well. Let's say ns1.site.com & ns2.site.com are my current primary nameservers for my main domain. I purchased server B and and while I did it, I used the same nameservers as my primary nameservers. Now what I have to do is not change the domain's nameservers, but go to the section where I can create new nameservers: "Set Host and IP Addresses" (I use godaddy). What I have there are the same nameservers and my old server IPs. I will just have to change the IPs to the new server's IPs? About these I have no idea what those mean...Why do I have to change anything on the old server? And how would the coping and restarting work? I always had my hosting company handle the DNS from the server's site and every single time I have gone or told them to go through the process I've had problems... I appreciate the help!
You can also change the TTL on your domain/nameservers to a small amount a few days before moving hosts, so the new location is picked up quicker. Cpanel/WHM for example defaults TTL to 86400 (one day).
This should help explain what TTL is: http://en.wikipedia.org/wiki/Time_to_live (Sorry, it's Wikipedia) Jay