Shift website hosting – part 3 (2) (dynamic sites, Forums and Blogs)

This is the 4th post in the series for shifting websites from one server to another. The earlier posts in this series were as follows:

  1. Shift website hosting – part 1 (static site)
  2. Shift website hosting – part 2 (leftover emails)
  3. Shift website hosting – part 3 (1) (dynamic sites, CMS)

In this part, I ennumerate the steps for transferring a forum and a WordPress blog from one hosting provider to another. In earlier posts, I have written the steps in details. However in this post, unless necessary, I have not mentioned the details because they remain almost same.

FORUM:
First lets talk about a forum.

  1. Disable posting by changing use permissions or shut down the forum. In phpBB and vBulletin, there is an option to disable the forum. Use that option. I will personally prefer the first option so that visitors can at least read the forums and may also click on advertisements. 😉 But many times, it is easier to simply shut it down. Shutting down a forum or forum posting for transfer is a pretty drastic step! But there is no other alternative if you don’t want to lose contents.
  2. Transfer core code files (e.g. .php, .htm, .css, .js, .jpg, etc.) from the old hosting account to the new one.
  3. Backup the database and transfer it. If it is a MySQL database, start phpMyAdmin and use the export feature. Save the .sql file which can be imported in the new hosting account (again using phpMyAdmin). However, in cPanel based hostings, there are other ways of backing up database as well. More about it will come in other posts.
  4. Login to the admin panel using the new host’s IP address and enable posting/forum.
  5. Update DNS of domain name. As soon as the DNS propogation is complete, visitors will start seeing the active forum on new site.

Intially some visitors will see the old forum and some will see the new one. Whoever goes to the old forum, will see a disabled forum. So put an appropriate message. This happens because ISPs have their own cache. As already mentioned in earlier posts, how soon do they refresh their cache depends on TTL (Time To Live). Usually it takes 48-72 hours for DNS propogation to complete.

WORDPRESS BLOG:
Now lets talk about a WordPress Blog. But why only a WordPress blog? There are two reasons:

  1. WordPress is one of the most widely used and most popular blog application. Most people with their own domain/hosting use WordPress.
  2. That is the only blog application that I have ever used. However, most blogging applications use its core source files and a database (mailnly MySQL). So these steps will more or less remain the same for any blogging application.

A blogging application (now onwards I will say “WP“) is more or like a CMS (Content Management System) with only once exception. In a site that uses a CMS, user input/comments do not form an integral part of contents. But in a blog, comments are given quite a bit of importance. While transferring a blog, there is only one way to prevent a loss of user comments! Disable them!

Here is how to disable user comments in WP:

  1. Login to the dashboard
  2. Go to Options
  3. Go to Discussion
  4. Disable “allow people to post comments on the article”.

Here are the steps of transferring a WP blog from one hosting account to another. On the whole these steps will remain more or less same for any PHP+MySQL web-application.

  1. Disable the comments.
  2. Make a post announcing the shift and stop posting further. Specify in the post why comments are disabled temporarily.
  3. Transfer the core code files (e.g. .php, .htm, .css, .js, .jpg, etc.).
  4. Transfer the database.
  5. Change DNS.
  6. After DNS propogation is complete enable the comments and make a post announcing that transfer is complete and comments are enabled again.

With this post, I think I complete the basics of shifting various types of sites from one hosting account to another. 🙂 Of course, there are various other things that one need to consider and various other ways of transferring sites. For example, there are ways in cPanel to directly transfer files from one server to another. But more about that later!

Update:
Also see Shift website hosting – part 3(3) (dynamic sites of all types) – least downtime.

PS: Thank you Bhavik for pushing me. Without your push, I would have never finished this post. 🙂

6 comments

  1. I’m the only one in this world. Can please someone join me in this life? Or maybe death…

  2. 😯 I am in shock as after 20,000 hits on my blog in the past 36 hours, my host provider closed my service down saying monthly bandwidth exceeded.

    So I have a multi terabyte per month bandwidth limit with another top host provider, and I am now going to follow your procedure to transfer my blog.

    God willing, this will go well and hopefully my site will not disappear into the black hole of “you have exceeded your bandwidth limit because too many people visited your blog yesterday”.

    Thank you Ashish for your very helpful and well documented procedures.

    I know enough about this stuff to be dangerous, but on this occasion with so much at stake, I have decided to seek professional guidance and I have found it here.

    12 out of 10 is My Ranking for this blog!!!

    Warmest regards,

    Dr Wayne Nowland,
    Blogmaster, Forex Trading Genie
    Founder, Internet Millionaire Blueptint

  3. Thanks Bhavik for appreciation. But I am not a hosting guru. I am still a baby 😛 and there is lots more to learn.

    Regards.

    Ashish.

  4. Hi Ashish bhai,
    Nice one again… Well articles and topics about hosting and domains helps a newbie like me to learn from guru’s…

    Keep posting, also on Ad revenues.
    You rock.

Leave a comment

Your email address will not be published. Required fields are marked *