Salin dan Bagikan
Cara Migrate WordPress ke Hosting Baru 2025

Cara Migrate WordPress ke Hosting Baru 2025

WordPress Migration Complete Guide

Moving WordPress to new hosting? Follow this step-by-step guide for smooth migration!

Why Migrate?

Common Reasons

  • Better performance needed
  • Cheaper hosting found
  • More features required
  • Better support wanted
  • Server location change
  • Hosting company issues

Pre-Migration Checklist

Preparation Steps

  1. Full backup of current site
  2. Export database
  3. Test backup restore
  4. Check DNS TTL (lower to 300)
  5. Document current setup
  6. Inform users if needed
  7. Choose maintenance window

What You Need

  • New hosting credentials
  • FTP software (FileZilla)
  • SSH access (optional but helpful)
  • Database credentials (old and new)
  • Domain registrar access
  • 2-4 hours time

Method 1: Plugin Migration (Easiest)

Using Duplicator Plugin

Step 1: On Old Site

  1. Install Duplicator plugin
  2. Packages → Create New
  3. Name: sitename-migration-date
  4. Next → Scan → Build
  5. Download both installer.php and archive.zip

Step 2: On New Hosting

  1. Create empty database
  2. Note database name, username, password
  3. Upload installer.php and archive.zip to public_html
  4. Visit yoursite.com/installer.php
  5. Follow wizard
  6. Enter new database credentials
  7. Update URLs
  8. Test site
  9. Delete installer files

Advantages:

  • Beginner friendly
  • Automatic URL updates
  • Database and files together
  • Less technical knowledge needed

Limitations:

  • Large sites may timeout
  • Some hosts block installer.php
  • Free version has size limits

Using All-in-One WP Migration

Even Simpler:

  1. Install plugin on old site
  2. Export site to file
  3. Install plugin on new site
  4. Import file
  5. Done!

Limit: 512MB on free version

Method 2: Manual Migration (Full Control)

Step 1: Backup Files

Via FTP:

  1. Connect FileZilla to old site
  2. Download entire WordPress folder
  3. Keep folder structure intact
  4. Takes 15 minutes - 2 hours (size dependent)

Via cPanel:

  1. File Manager → Select public_html
  2. Compress → Download
  3. Faster than FTP for large sites

Step 2: Export Database

phpMyAdmin Method:

  1. cPanel → phpMyAdmin
  2. Select WordPress database
  3. Export tab
  4. Quick → SQL format
  5. Go → Download .sql file

Step 3: Setup New Hosting

Create Database:

  1. New host cPanel → MySQL Databases
  2. Create database (name it same or note new name)
  3. Create user with strong password
  4. Add user to database
  5. Grant ALL PRIVILEGES
  6. Note: database name, username, password, host

Step 4: Upload Files

Via FTP:

  1. Connect to new host
  2. Upload all WordPress files to public_html
  3. Keep folder structure identical
  4. Can take 30 minutes - 3 hours

Via cPanel:
Upload zip, extract in File Manager (faster!)

Step 5: Import Database

phpMyAdmin on New Host:

  1. Select your new database
  2. Import tab
  3. Choose SQL file
  4. Go
  5. Wait for import (1-10 minutes)

If file too large:

  • Use BigDump script
  • Or increase upload limits
  • Or command line import

Step 6: Update wp-config.php

Edit wp-config.php with new credentials:

define('DB_NAME', 'new_database_name');
define('DB_USER', 'new_username');
define('DB_PASSWORD', 'new_password');
define('DB_HOST', 'localhost'); // or new host value

Step 7: Update URLs

If Domain Stays Same:
Site should work immediately!

If Domain Changes:

Option A: Plugin

  1. Install Better Search Replace
  2. Search: old-domain.com
  3. Replace: new-domain.com
  4. Select all tables
  5. Run!

Option B: Manual SQL
In phpMyAdmin:

UPDATE wp_options SET option_value = replace(option_value, 'http://old-site.com', 'http://new-site.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://old-site.com', 'http://new-site.com');
UPDATE wp_posts SET guid = replace(guid, 'http://old-site.com', 'http://new-site.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://old-site.com', 'http://new-site.com');

Step 8: Update DNS

Point Domain to New Server:

  1. Get new server IP from hosting
  2. Go to domain registrar
  3. Update A record to new IP
  4. Wait 1-48 hours for propagation (usually 2-6 hours)

Check Propagation:
Use whatsmydns.net to check DNS propagation globally

Testing Migration

Comprehensive Tests

Before DNS Change:
Edit hosts file to test new site:

  • Windows: C:\Windows\System32\drivers\etc\hosts
  • Mac/Linux: /etc/hosts

Add line: new-server-ip yourdomain.com

After Migration:

  • Homepage loads correctly
  • Admin panel accessible
  • All posts display properly
  • Images showing
  • Forms work
  • Login/logout works
  • Comments functional (if enabled)
  • Search works
  • Permalinks correct
  • SSL certificate (if applicable)
  • Contact forms send emails

Troubleshooting Common Issues

Database Connection Error

  • Verify wp-config.php credentials
  • Check DB_HOST value (might not be localhost)
  • Ensure database user has privileges

Images Not Displaying

  • Check file permissions
  • Verify wp-content/uploads copied
  • Update URLs if domain changed
  • Check .htaccess rules

404 Errors on Posts

  • Settings → Permalinks → Save
  • Check .htaccess exists and writable
  • Verify mod_rewrite enabled on new server

Site Very Slow

  • Clear cache plugins
  • Check PHP version
  • Optimize database
  • Verify server resources

Admin Panel Not Loading

  • Check wp-admin URL
  • Clear browser cache
  • Check file permissions
  • Verify all files uploaded

Post-Migration Checklist

Must Do

  • Test all functionality
  • Update email settings
  • Setup SSL certificate
  • Configure caching
  • Update CDN (if using)
  • Test contact forms
  • Check analytics tracking
  • Verify search console
  • Update payment gateways
  • Notify users if needed

Monitor for 48 Hours

  • Site uptime
  • Error logs
  • User reports
  • Performance metrics
  • Email delivery

Zero Downtime Migration

Advanced Method

  1. Clone site to new host
  2. Test thoroughly
  3. Put old site in maintenance mode
  4. Quick final database sync
  5. Change DNS
  6. Remove maintenance mode

Downtime: 5-15 minutes only!

Best Practices

Do’s

  • Always backup first
  • Test on new host before DNS change
  • Keep old site active until confirmed
  • Document every step
  • Use checklist
  • Schedule during low traffic

Don’ts

  • Rush the process
  • Skip testing
  • Delete old site immediately
  • Change many things at once
  • Ignore error logs
  • Forget SSL setup

When to Hire Expert

Consider professional help if:

  • Very large database (1GB+)
  • Custom code/integrations
  • E-commerce site
  • Mission critical site
  • No technical experience
  • No time for learning
  • Previous attempt failed

Cost: $50-$500 depending on complexity

Conclusion

WordPress migration is straightforward with proper planning:

  1. Full backup
  2. Export database
  3. Upload files to new host
  4. Import database
  5. Update wp-config.php
  6. Update URLs (if needed)
  7. Change DNS
  8. Test everything

Takes 2-4 hours for typical site. Use plugin for simplicity or manual method for full control. Always test before changing DNS!

Your site will run on new hosting smoothly if you follow this guide systematically.

Link Postingan : https://www.tirinfo.com/cara-migrate-wordpress-ke-hosting-baru-2025/

Hendra WIjaya
Tirinfo
4 minutes.
8 December 2025