How can we migrate Linux web hosting without facing downtime?

Changing from one web hosting provider to ZNET can cause downtime if you do not have the necessary skills and experience. Here is a step by step guide to help you make a transfer without any downtime.

Step 1: Back up all your files.

a) This must always be your first step. Before you do anything else, purchase a web hosting package with ZNET, but do not cancel your account with the current hosting provider.

b) After purchasing a web hosting package, a Welcome mail is sent to you with all login details like FTP, NameServer, Server IP address, Temp URL, Database Details and Web Hosting Control Panel [For Linux User – cPanel] details.

c) Backup all your files from the old server. Back up your text files, image files, and database. This may take several hours, depending on the size of your website.

d) Using a basic FTP program such as CuteFTP, SmartFTP or Filezilla, to download all current files used in your website including graphics, html files, and anything else that may be used in your site.

e) Transfer all files to your local hard drive. For databases, you may need to use a third party software, or you can use PhpMyAdmin. PhpMyAdmin is available within your Hosting Control Panel.


Step 2: Upload all files to the new server.

a) Now upload your website files and data from local desktop to ZNET Server. [ZNET hosting server information is given to you in welcome mail.]

b) Make sure the directory structure is correct. For example, “public_html” is the root folder of Linux web hosting user, all files that belong to the root folder must be uploaded correctly to that folder. Otherwise, you may encounter lots of errors when you migrate your website.

c) Use your database software such as PhpMyAdmin to upload the database as well.


Step 3: Add email accounts to your new server.

Log in to your control panel, and add your existing email accounts. When your new site is ready, your POP email accounts should be working as well.

Before making the domain name change, go ahead and load up all of your site files to your new host using temporary login information that most hosts provide prior to your domain name resolving to the new account. Although they won't really work yet, go ahead and set up all of the email accounts that are used on your domain as well. Be sure to create a "catchall" address just in case you forgot to add someone - at least their email will not bounce.

To safeguard against losing messages, try creating 2 accounts for your email address, and use each mail server's IP address instead of the domain name in your POP settings. For example, if you are using mail.example.com as your pop settings, try replacing that with the IP address of your website or email server. Creating an account that checks both mail servers ensures you don't miss any messages during this 24 - 48 hour period.


Step 4: Test your mirror site.

a) You have just created a mirror site for your existing site.

b) Use a temporary URL [Temporary URL is given to the welcome mail] to test the site to ensure that everything is working correctly.

c) Be Sure! Are the links and images displaying correctly?

d) If everything has been tested to work fine, it's now time to make changes to the DNS.


Step 5: Changing the DNS.

a) First of all, you can change your CNAME, MX and A Record in existing or old Hosting account with New IP Address.

Example : Suppose Your Domain name is “example.com” with Old or Existing web hosting DNS zone details as

example.com.--------14400----IN----A-------------A.B.C.D
example.com.--------14400----IN----MX-----------0- mail.example.com.
mail-----------------------14400----IN----CNAME-----example.com.
www----------------------14400----IN----CNAME-----example.com.
ftp--------------------------14400----IN----A--------------A.B.C.D
webmail-----------------14400----IN ---A --------------A.B.C.D

Now, you have a welcome mail in which  nameserver address like name1.znetindia.com and name2.znetindia.com are mentioned, then change these details to old or existing hosting like below :-

example.com.---------14400----IN----A-------------W.X.Y.Z
example.com.---------14400----IN----MX-----------0-mail.example.com.
mail------------------------14400----IN----CNAME----example.com.
www----------------------14400----IN----CNAME----example.com.
ftp--------------------------14400----IN----A-------------W.X.Y.Z

Here A.B.C.D and W.X.Y.Z are IP address.
MX is Mail exchanger Server.
CNAME is canonical name.

b) The moment you change your DNS, you are instructing the registrars that you are changing web hosting providers.

c) Your top level domain name will then point to the domain nameservers. Go to your registrar, and update your DNS servers.

d) There must be at least 2 domain nameservers. Once the DNS has been updated, it takes a few hours for the changes to take place.

Note:  Some webmasters make the mistake of changing the DNS first. This is a mistake. When you change the DNS, the site starts to migrate. Some of your visitors may be unable to access your site because the new site is not ready yet. In other words, making changes to the DNS before the new site is ready can cause unwanted downtime.


Step 6: Wait 48 hours for the changes to take place.

a) Usually, the migration happens within hours. Allow up to 48 hours for the DNS updates to be completed.

b) You can see that the transfer has been completed by using a WHOIS domain tool.

c)  The new nameservers will be reflected when you make a search for your top level domain. Finally, check to see that your email accounts are working correctly.

A note about the Propagation period

As mentioned before, it takes about 24 - 48 hours for the domain name change to propagate through everyone's DNS server. This means that during this time some people will get the new site, and some will still get the old site. As far as web surfing, that's really no big deal but can be tricky in regards to email. Depending on where an email is from, it may go to your new email server or your old server.

To safeguard against losing messages, try creating 2 accounts for your email address, and use each mail server's IP address instead of the domain name in your POP settings. For example, if you are using mail.example.com as your pop settings, try replacing that with the IP address of your website or email server. Creating an account that checks both mail servers, ensures you don't miss any messages during this 24 - 48 hour period.

It is the best way to switch with no downtime on your website.

Ask a question

"Hey couldn't find what you were looking for in our knowledgebase? Please enter your question here".

First Name *
Last Name *
Email Address *
Question *
Captcha *