Introduction
This guide walks you through the process of migrating your MODX Revolution site from a cPanel hosting environment to MODX Cloud. Following these steps will help ensure a smooth transition with minimal downtime.
Why not let us save you the time and hassle? The MODX Cloud team can migrate your sites to Cloud. Your first site is free (some exceptions for complex sites) and additional sites start at $99. Contact us for more info.
Overview of Migration Steps
- Check your current MODX version in Manager
- Create a blank MODX Revolution site in MODX Cloud with matching version
- Extract your site files and database from cPanel
- Import your database to MODX Cloud
- Upload your site files to MODX Cloud
- Update configuration settings
- Reinstall Product to clear the cache
- Verify your site functionality and back it up
- Upgrade to the latest MODX version (recommended)
- Clean up temporary files and tools
- Point your DNS to the MODX Cloud instance
Detailed Instructions
1. Check Your Current MODX Version
Before beginning the migration process, you need to identify the exact version of MODX Revolution you're currently running:
- Log in to your MODX Manager on your source site
- Look at the bottom-right corner of the screen where it displays "MODX Revolution x.x.x-pl"
- Note this version number, as you'll need to match it exactly when creating your MODX Cloud instance
- If you can't access the Manager, you can also check the core/docs/version.inc.php file for this information
2. Create a New MODX Cloud Instance
- Log in to your MODX Cloud account
- Click "Create New Cloud"
- Important: From the right side of the New Cloud screen, click "Change Version" to select the same version of MODX Revolution you identified in step 1
- Complete the setup by following the on-screen prompts
3. Extracting Your Site from cPanel
Exporting Your Database
- Log in to your cPanel account
- Navigate to the "Databases" section and open phpMyAdmin
- Select your MODX database from the left sidebar
- Click the "Export" tab at the top of the page
- Choose "Custom" export method for more options
- Ensure the following settings are selected:
- Format: SQL
- Include "
DROP TABLE
" statements (important) - Add
CREATE DATABASE / USE
statement - "Structure" and "Data" should both be selected
- Click "Go" to download the SQL file to your computer
Note: If your current site uses a table prefix other than "modx_
", you'll need to modify your SQL file to use "modx_
" before importing it to MODX Cloud. Use a text editor to find and replace all instances of your current prefix with "modx_
". If you're not sure how, please contact the MODX Support team.
Downloading Your Site Files
Method 1: Using cPanel File Manager:
- In cPanel, open "File Manager"
- Navigate to your site's root directory
- Select all necessary folders (typically public_html or www)
- Click "Compress" and choose ZIP format
- Once compression is complete, download the ZIP file to your computer
Method 2: Using FTP/SFTP:
- Use an SFTP client like FileZilla, Cyberduck, or WinSCP
- Connect to your cPanel server using your FTP credentials
- Download the following directories:
- Your entire assets folder
- core/components/
- core/packages/ (but do NOT include core.transport.zip)
- Any custom files like favicon.ico or .htaccess files you need
- Delete or rename the core/config/config.inc.php and config.core.php files as they will conflict with the ones in your new Cloud instance.
4. Import Your Database to MODX Cloud
- From the "Summary" tab under MySQL click "Show Details" to view your MySQL credentials
- Click the "Open phpMyAdmin" button at the right of the MySQL section to launch it in a new tab
- Log in using the MySQL credentials provided
- Click on the database name in the left sidebar
- Select the "Import" tab
- Click "Choose File" and select your SQL export file
- Click "Go" to begin the import process
5. Upload Your Files to MODX Cloud
- From Cloud instance Edit View, go to the "Summary" tab to find your SFTP credentials
- Connect to your MODX Cloud instance using an SFTP client
- Upload the following directories from your downloaded site files:
- All assets folders
- core/components/
- core/packages/ (WARNING: Do NOT overwrite core.transport.zip or core/packages/core/ folder)
- Any custom files (favicons, etc.)
6. Reinstall Product
- Return to your MODX Cloud Dashboard
- Click the "Reinstall Product" button in the sidebar
- This will clear your cache and ensure all MODX files are in the correct locations
7. Confirm Your Site Works and Take a Snapshot
- Access your site using the temporary URL provided by MODX Cloud
- Verify all pages, assets, and functionality work as expected
- Take a (Complete) Snapshot from your MODX Cloud Dashboard (Recommended in case changes or the upgrade in step 8 breaks your site)
- Name it something descriptive like "Successful Import from 2.x.x" (where 2.x.x is your source version)
8. Upgrade to the Latest Version (Recommended)
Note: It's not recommended to upgrade from 2.x to 3.x withouth first testing your site and Extras in a separate cloned Cloud instance. We recommend for the import process to only upgrade to the latest version of the major version. If you're on 2.x, upgrade to the latest 2.x.x version. If you're on 3.x, you're fine to upgrade to the latest 3.x.x.
- Use your Snapshot as a safety net
- Consider creating a clone for testing the upgrade process
- If upgrading from 2.2.x or earlier:
- First upgrade to 2.3.x
- Then to 2.4.x
- Finally to the latest version
- After upgrading, update all Extras using the Package Manager in the MODX Manager
10. Cleanup
- Delete any SQL dump files from your server
- Remove any temporary .htaccess files (MODX Cloud uses NGINX web rules)
- Delete any test/clone instances once you're satisfied with the migration
11. Launch Your MODX Cloud Site
A. Add Custom Domain(s)
- Go to the Cloud Edit Page and select the Domains & Config tab
- Click Add Domain to open a dialog for entering details
- Enter your domain name in the Name field
- Click Add a Domain
- Repeat for any additional domains you want to point to this Cloud
B. Activate Live Production Site
- After adding all your Custom Domains, stay on the Domains & Config tab
- Click the toggle at the top right of the tab to activate this site as a Live Production Site
- Proceed through checkout if prompted (note: this may add to your subscription if you've already used your plan's included Live Sites)
C. Point Your Domain to MODX Cloud
- From your MODX Cloud Dashboard, note the public IP address shown on the Summary tab
- Log in to your domain registrar or DNS provider
- Set the A record for @ (representing the root domain) to the IP address you copied
- Depending on your TTL settings, DNS propagation may take from a few minutes to 24 hours
Read more about Adding Domains or Launching Your Website.
Troubleshooting Common Issues
Database Connection Issues
- Verify your database name, user, and password in core/config/config.inc.php
- Check that all tables have the correct prefix (should be "modx_")
Missing Content or Broken Pages
- Ensure all assets were properly uploaded
- Check for any hardcoded paths in your templates or content
- Clear the site cache through the MODX Manager or by using "Reinstall Product"
File Permission Problems
- MODX Cloud handles file permissions automatically
- If you experience issues, contact MODX Cloud support
Need Help?
If you encounter difficulties during migration, we're here to help:
- Contact MODX Cloud support
- Remember that the MODX Cloud team can migrate your first site for free (some exceptions for complex sites)
For additional assistance, contact us using the Help button in the MODX Cloud Dashboard.