Logo

Website Migrations

Migrating a production website to a new host can be stressful, but with the right preparation and methodology, it can be executed with zero downtime. This comprehensive guide covers everything from backup strategies to DNS cutovers.

Pre-Migration Checklist

Preparation is the most critical phase of any migration. Failing to audit your current environment can lead to missing files, broken databases, or extended downtime during the transition.

Free Expert Migration

Did you know? All KairoHost LLC annual hosting plans come with free expert migrations. Our technical team will handle the entire process for you. Just open a migration ticket in your dashboard and provide your current hosting credentials!

The Migration Process

If you are performing a manual migration, follow these steps meticulously to ensure data integrity.

Recommended workflow

  1. Generate a full backup of your website files and export your MySQL/PostgreSQL database from your current host.
  2. Log in to your KairoHost LLC control panel and provision your new hosting environment. Take note of your temporary hosting IP address.
  3. Upload your website files to the `public_html` directory using FTP or the File Manager.
  4. Create a new database and database user in the KairoHost LLC panel. Import your SQL dump into this new database.
  5. Update your application's configuration file (e.g., `wp-config.php` for WordPress or `.env` for Laravel) with the new KairoHost LLC database credentials.

Notes and best practices

  • Always compress your files into a single `.zip` or `.tar.gz` archive before transferring. Moving thousands of small files individually over FTP is extremely slow and prone to errors.
  • If your database is larger than 50MB, use SSH or a tool like BigDump to import it, rather than phpMyAdmin, to avoid timeout errors.

Testing & Validation (The Hosts File Trick)

The golden rule of website migrations is to NEVER change your DNS nameservers until you have verified that the site works perfectly on the new server. But how do you view the site on the new server if the domain still points to the old one?

Validation Methods

Techniques for testing your migrated site before public cutover.

Modify Local Hosts File (Recommended)

Edit your computer's `hosts` file to force your machine to resolve your domain to the new KairoHost LLC IP. This allows you to test the site exactly as it will appear post-migration.

Temporary URLs

Use the temporary URL provided in your KairoHost LLC dashboard (e.g., `http://192.168.1.1/~username`). Note: This may break absolute links in CMS platforms like WordPress.

Staging Subdomain

Create a subdomain (like `new.yourdomain.com`), point it to the new server, and test the site there. Requires search-and-replace on the database later.

Check Core Paths

Once connected to the new server, test the homepage, login to the admin dashboard, submit a test form, and verify image uploads.

E-commerce Data Freeze

If you are migrating a WooCommerce store or any active web application, you must institute a 'data freeze'. Put the old site into maintenance mode during the migration. Otherwise, any orders placed on the old server while you are copying data to the new server will be permanently lost.

DNS Cutover Strategy

Once you have fully tested the site on KairoHost LLC using your local hosts file, you are ready for the public cutover.

  • Lower TTL: 24 hours before the migration, log into your current DNS provider and lower the TTL (Time to Live) on your A records to 300 seconds (5 minutes). This ensures the final switch happens quickly.
  • Update Nameservers: Go to your domain registrar and replace your old nameservers with KairoHost LLC's nameservers (`ns1.kairohost.com`, `ns2.kairohost.com`),
  • Keep Old Server Active: Do NOT cancel your old hosting account immediately! Wait at least 7 days after changing nameservers to ensure all global traffic has fully migrated to KairoHost LLC.

Popular Troubleshooting Guides

Resolve common issues encountered during complex server migrations.