Migration Guide: WordPress & cPanel
This is the detailed step-by-step instruction on how to migrate wordpress site beke nemen! pagaralan din
Advantages of Moving from Standalone cPanel to Managed WordPress
- Optimized Environment: Managed WordPress hosting is tailored specifically for WordPress, offering improved performance and security out of the box.
- Automatic Updates: Core, theme, and plugin updates are handled automatically, reducing maintenance effort.
- One-click Backups and Restores: Easy backup management to protect your site.
- Expert Support: Support staff specialized in WordPress can assist promptly.
- Built-in Security Enhancements: Protection against common WordPress vulnerabilities.
Advantages of Moving from Managed WordPress to Standalone cPanel
- Greater Flexibility: You can host multiple platforms and applications beyond WordPress.
- Full Control: Access to all server settings, PHP versions, and configurations.
- Custom Software Installations: Ability to install and manage other CMS or custom apps.
- Better for Developers: Easier to handle specialized workflows or custom server-side code.
- Cost Savings: Sometimes standalone cPanel plans are more affordable depending on needs.
Migration: cPanel to WordPress
This section provides very detailed step-by-step instructions for migrating a site from cPanel hosting to WordPress hosting.
Step 1: Backup Files and Database in cPanel
- Log in to your cPanel account dashboard using the URL (usually https://yourdomain.com:2083).
- File Backup: Open File Manager. Navigate to the
public_htmldirectory or your site's root folder. - Select all files and folders and choose "Compress" (usually ZIP is most compatible). Download the compressed archive to your local computer.
- Database Backup: In cPanel, open phpMyAdmin.
- Select your WordPress-related database, click on the "Export" tab, choose "Quick" export, format SQL, then click "Go" to download the database backup.
Step 2: Prepare WordPress Hosting & WordPress Dashboard Credentials
- Access your new WordPress hosting dashboard. This may be on Managed WordPress hosting or a new cPanel/WordPress setup, depending on your provider.
- Note your WordPress Admin dashboard URL, username, and password to log in (
https://yourdomain.com/wp-admin).
Step 3: Upload Files to WordPress Hosting Filesystem
- Log in to the hosting control panel provided (cPanel or Managed WordPress portal).
- Use File Manager or an FTP client and navigate to the WordPress installation directory.
- Upload your previously compressed backup archive (ZIP file).
- Once uploaded, extract the archive contents inside the WordPress root folder, overwriting files if necessary.
Step 4: Import Database in WordPress Hosting
- Access phpMyAdmin on your new WordPress hosting environment.
- Create a new database (if necessary) and a user with all privileges assigned to that database.
- Select the new database in phpMyAdmin, click on the "Import" tab.
- Click "Choose File" and select your downloaded database SQL file from cPanel.
- Click "Go" to import the database content.
Step 5: Configure wp-config.php on WordPress Hosting
- Open
wp-config.phpfile in your WordPress root directory using File Manager or FTP. - Modify the following values to match your new database credentials:
define('DB_NAME', 'your_new_db_name');
define('DB_USER', 'your_new_db_user');
define('DB_PASSWORD', 'your_new_db_password');
define('DB_HOST', 'localhost');
Step 6: Update Site URL (If Necessary)
- If the domain or directory path has changed, update site URL and home URL:
- Log into your WordPress Admin Dashboard.
- Go to Settings » General.
- Update the "WordPress Address (URL)" and "Site Address (URL)" fields.
- Save changes.
- Alternatively, update these URLs in the database via phpMyAdmin if unable to access dashboard.
Step 7: Test Your Website
- Visit your website URL to confirm it loads correctly.
- If you encounter errors like "Error Establishing a Database Connection" or "Critical Error," enable debugging by adding
define('WP_DEBUG', true);inwp-config.phpand check error logs. - Disable problematic plugins temporarily by renaming the
wp-content/pluginsfolder if a white screen occurs.
One-Click Migration to GoDaddy Managed WordPress
Use GoDaddy's Automatic One-Click Migration Tool
Click to visit official GoDaddy instructions for automatic migration to Managed WordPress hosting.
Migration: WordPress to cPanel
This section provides very detailed step-by-step instructions for migrating a site from WordPress managed hosting to cPanel.
Step 1: Export WordPress Content
- Log in to your WordPress Admin Dashboard at
https://yourdomain.com/wp-admin. - Navigate to Tools » Export.
- Select "All content" and click "Download Export File".
- This XML file contains posts, pages, comments, custom fields, terms, navigation menus, and custom posts.
Step 2: Backup Your Database
- Access your managed WordPress hosting dashboard and locate the database management section or contact support to obtain a database backup if direct access isn't available.
- Alternatively, use plugins like WP-DB-Backup or UpdraftPlus to export your database.
Step 3: Backup wp-content Folder
- Use an FTP client or hosting file manager to download the
wp-contentfolder. It contains themes, plugins, and uploads.
Step 4: Setup cPanel Hosting
- Log in into your cPanel hosting account.
- Create a new database and user in MySQL® Databases and assign privileges.
- Upload WordPress files to the
public_htmlor appropriate web root folder.
Step 5: Import Database into cPanel
- Open phpMyAdmin in cPanel.
- Select the new database and import your SQL backup.
Step 6: Upload wp-content Folder
- Upload the saved
wp-contentfolder via FTP or cPanel File Manager to overwrite the existing folder on the new hosting.
Step 7: Import Content XML into WordPress
- Log in to the WordPress Admin Dashboard on your cPanel host.
- Go to Tools » Import.
- Install the WordPress importer if not installed.
- Upload the XML export file and assign authors accordingly.
Step 8: Update wp-config.php
- Edit
wp-config.phpwith the new database name, user, and password.
Step 9: Test Your Website
- Check your site for complete functionality and media.
- Fix errors by enabling debugging or checking error logs if necessary.
One-Click Migration to GoDaddy Managed WordPress
Use GoDaddy's Automatic One-Click Migration Tool
Click to visit official GoDaddy instructions for automatic migration to Managed WordPress hosting.
Migration: cPanel to cPanel
Steps to migrate a WordPress (or any) site from one cPanel hosting account to another.
Migration: WHM to cPanel
This section covers migrating sites from WHM (Web Host Manager) to individual cPanel accounts, typically used when moving from a reseller or VPS to a cPanel shared hosting account.