How to Migrate an Existing WordPress Site to ruachost.com
If you already have a WordPress site hosted elsewhere, you don’t need to start over. You can migrate your existing site to ruachost.com by transferring files, databases, and settings. This ensures your site remains intact with all posts, themes, and plugins.
Migration Overview
Section titled “Migration Overview”To migrate successfully, you’ll need to:
- Transfer WordPress files.
- Export and import the WordPress database.
- Configure custom settings.
- Update domain settings.
- Test the new site.
Step 1: Migrate WordPress Files
Section titled “Step 1: Migrate WordPress Files”-
Using cPanel
Section titled “Using cPanel”- Log in to cPanel on your current host.
- Compress the WordPress directory (usually
public_html) into a.zipfile. - Upload the
.zipfile to your ruachost.com account via File Manager or FTP. - Extract the files into the
public_htmldirectory.
-
Using Command Line (SSH)
Section titled “Using Command Line (SSH)”-
Log in via SSH to your old host.
-
Run:
Terminal window zip -r public_html.zip public_html -
Upload the
.zipfile to your ruachost.com account. -
Extract with:
Terminal window unzip public_html.zip
-
Step 2: Migrate the Database
Section titled “Step 2: Migrate the Database”-
Export Database from Old Host
Section titled “Export Database from Old Host”- Open
wp-config.phpto identify your database name. - Use phpMyAdmin → Export → Save as
wordpress.sql.
- Open
-
Import Database to Ruachost.com
Section titled “Import Database to Ruachost.com”-
Log in to cPanel at ruachost.com.
-
Create a new MySQL database and user.
-
Use phpMyAdmin → Import → Upload
wordpress.sql. -
Update
wp-config.phpwith new database credentials:define('DB_NAME', 'new_database');define('DB_USER', 'new_user');define('DB_PASSWORD', 'new_password');
-
Step 3: Configure Custom Settings
Section titled “Step 3: Configure Custom Settings”- Copy or update any custom settings from
.htaccessorphp.ini. - Ensure plugins and themes are compatible with the new environment.
Step 4: Update Domain Settings
Section titled “Step 4: Update Domain Settings”- Point your domain’s nameservers to ruachost.com.
- If using a new domain, update the
siteurlandhomevalues in the WordPress database (wp_optionstable).
Step 5: Test the Site
Section titled “Step 5: Test the Site”- Visit your domain to confirm the site loads correctly.
- Test posts, pages, and admin login.
- Clear cache if changes don’t appear immediately.