Linux - how to migrate web hosting without downtime

How to migrate Web hosting Without Downtime

Changing from one web hosting provider to MicroHosting 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 MicroHosting, but do not cancel your account with your current provider just yet.

b) After Purchased a web hosting Package, A Welcome mail is send to you with all login details like FTP, Name Server, 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 web site 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.

Note: For FTP Queries, Please see the URL - http://www.microhosting.in/manage/knowledgebase/7/FTP-Queries


Step 2: Upload all files to the new server

a) Now upload your website files and data from local desktop to MicroHosting Server. [MicroHosting 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 mosts 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 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 web site or email server. Creating an account that checks both mail servers insures you don't miss any messages during this 24 - 48 hour period.

Note: For Email Queries URL - http://www.microhosting.in/manage/knowledgebase/4/Email-Queries


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 is

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, Your have a welcome mail in which mention name server address like name1.microhosting.in and name2.microhosting.in, 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 name servers. Go to your registrar, and update your DNS servers.

d) There must be at least 2 domain name servers. 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.

Note: For DNS and Domain Queries - http://www.microhosting.in/manage/knowledgebase/3/Domain-and-DNS-Queries

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 name servers 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 web site or email server. Creating an account that checks both mail servers insures you don't miss any messages during this 24 - 48 hour period.

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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Windows - How to migrate Web hosting Without Downtime

How to migrate Web hosting Without Downtime Changing from one web hosting provider to...

How to transfer your wordpress blog from one host to another host?

If you are moving from a host where you used cPanel, you can perform a Full Backup and...

Anti-virus

There is no need for us to provide anti-virus on a Linux box. We manage those, and our security...

Can I host an XXX/adult sites?

We do NOT host pornography/XXX websites that contain galleries or video media files. We do not...

Can I modify MIME types?

Yes! You can do this all through our powerful control panel system.