Migrating Exponent
From ExponentCMS Docs
This page contains a guide to Migrating an existing Exponent website to a new location.
Migrating Exponent
Migrating an Exponent website from one server to another, or from one location on a server to another, can be readily achieved in a few simple steps. For more detailed instructions see the sections below.
- Export your Exponent Database. See Export your Database below.
- Export your Exponent Files Folder which contains the Files and Resources you have uploaded to your existing Exponent website. See Export your Files Folder below.
- Make a copy of your Exponent Themes Folder which should contain any custom Themes which you've created for your website. See Copy your Themes Folder below.
- Make a note of your Exponent Configuration Settings and installed Modules. See Save your Configuration Settings below.
- Perform a clean Exponent Installation in the new location, including adding any custom modules which are used in the old site. See Install Exponent in New Location below.
Ensure the install process DOES NOT overwrite your Database with sample data (erasing your old data).
- Restore your Exponent Themes to the new location. See Restore your Themes below.
- Restore your Exponent Database by uploading the Export to the new website. See Restore your Database below.
- Restore your Exponent Files by uploading the Export to the new website. See Restore your Files below.
- Restore your Exponent Configuration Settings to the new website. See Restore your Configuration Settings below.
- Visit your new Exponent website and verify that all your data is intact.
Export your Database
You need to export the Database which contains your website content. This is most easily achieved using the Exponent Data Exporters.
- Login to your Exponent website.
- Load the Administration Control Panel.
- Load the Database > Export Data page.
- Locate the EQL Database Exporter and click the Run Data Exporter link.
- Click on Select All to Export all installed tables.
- Name the Export file.
- Click on Export Data and when prompted Save the
.eqlfile to your local computer.
Migrating Exponent to a New Location on the Same Server — if you are migrating an existing Exponent installation to a new location on the same server, then you can use the existing Exponent database. It is still recommended that you export a backup copy of your database before proceeding with the migration.
For details of other ways to export your database see Backup the Exponent Database on the Upgrading Exponent page.
Export your Files Folder
You need to export the Files and Resources you have uploaded to your existing Exponent website located in the folder:
/files/ (folder, including sub-folders)
This is most easily achieved using the Exponent Data Exporters.
- Login to your Exponent website.
- Load the Administration Control Panel.
- Load the Database > Export Data page.
- Locate the Uploaded Files Exporter and click the Run Data Exporter link.
- Click on Select All to Export resources from all modules.
- Name the Export file.
- Click on Export Data and when prompted Save the
tar.gzfile to your local computer.
Please note that this file is not in standard .tar.gz format.
For details of other ways to export your Files Folder see Backup your Files Folder on the Upgrading Exponent page.
Copy your Themes Folder
You need to export any custom Themes which you've created for your website. This can be most easily achieved by using FTP to download your Themes folder.
- Connect via FTP to your Exponent website and locate your Themes Folder.
-
/themes/ (folder, including sub-folders)
-
- Copy this folder to your local computer, or directly to the new location for your Exponent site.
- In Linux, use the command:
tar -cvzf themename.tar.gz themename/
- In Linux, use the command:
Save your Configuration Settings
Make a note of all the custom settings and modules you have installed on your system.
- Login to your Exponent website.
- Load the Administration Control Panel.
- Load the Configuration > Configure Site page.
- Print this page for reference and either save the HTML page to your local computer or copy all of your custom settings to a text file for safe keeping, including:
- Database Options
- Display Settings
- Site Maintenance Settings
- Search Engine Friendly URLs
- General Site Configuration
- SMTP Server Settings (Note: These may vary if moving to a new server)
- Load the Extensions > Manage Modules page.
- Print this page for reference, making a note of any custom modules which you've added to your Exponent installation.
Install Exponent in New Location
You're now ready to install a fresh copy of Exponent to the new location.
- Upload and Extract a new version of the Exponent Software to the location of your new website.
- Run the Exponent Install Wizard.
- On the Database Configuration page, enter the Database details:
- Migrating Exponent to a New Server — if you are installing Exponent on a new server and want to initialise a new Exponent Database, then enter the new database settings.
- Migrating Exponent to a New Location on the Same Server — if you are installing Exponent on the same server and want to reuse an existing Exponent database, then enter the database settings from your old installation.
Make a backup of your database before proceeding!
- Untick the Install Example Content box and click Test Settings.
- Set up an Administrator Account and complete the installation.
Restore your Custom Modules
- Install any Custom Modules which are in use on your old website. You must do this before restoring the database!
- Ensure that you also restore all Datatypes, Definitions and Subsystem Files.
- If you have customised any of the Subsystem Files for the base modules then restore those also.
See the Installing Modules page for more info.
Restore your Themes
You now need to restore your custom Themes to the new location. This can be most easily achieved by using FTP to download your Themes folder.
- Connect via FTP to your new Exponent website and locate your Themes Folder.
-
/themes/ (folder, including sub-folders)
-
- Copy the backup folder from your local computer.
- In Linux, use the commands:
-
cp themename.tar.gz themes/tar -
-xvzf themename.tar.gz themename/
Restore your Database
You how need to restore the Database you exported from your old site. This is most easily achieved using the Exponent Data Exporters.
| ALERT! You must install any Custom Modules before restoring your database or their content will not be restored as part of this process. |
- Login to your Exponent website.
- As you have not installed the Sample Content, you will need to access the Administration Control Panel > Import Data function by directly inputting the following url:
www.yoursite.com/index.php?module=importer&action=list_importers - Locate the EQL Database Importer and click the Run Data Importer link.
- Click on Browse and locate the
.eqlfile you saved earlier your local computer. - Click the Restore button. You should then see the message "Data restored successfully from backup" and your website structure and database content should be restored.
Migrating Exponent to a New Location on the Same Server — if you have used an existing Exponent database then you can skip this step.
Restore your Files
You how need to restore the Files Folder you exported from your old site. This is most easily achieved using the Exponent Data Exporters.
- Login to your Exponent website.
- Open the Administration Control Panel > Import Data function either by clicking on admin page of your website or by directly inputting the following url:
www.yoursite.com/index.php?module=importer&action=list_importers - Locate the Uploaded Files Importer and click the Run Data Importer link.
- Click on Browse and locate the
.tar.gzfile you saved earlier your local computer. - Click the Restore button.
- When prompted with a list of Files to restore, select the ones you wish to restore and click Process.
- If all the files are marked as passed, then click Restore Files. You should then see the message "Successfully restored uploaded files from backup" and your Files should be restored.
Restore your Configuration Settings
The final step is to restore the custom settings to your new site.
- Login to your Exponent website.
- Load the Administration Control Panel.
- Load the Configuration > Configure Site page.
- You can access this page directly by inputing the url:
www.yoursite.com/index.php?module=administrationmodule&action=configuresite
- You can access this page directly by inputing the url:
- Click on the Edit link.
- Replace the default settings with those saved from your old website, including:
- Database Options
- Display Settings
- Site Maintenance Settings
- Search Engine Friendly URLs
- General Site Configuration
- SMTP Server Settings (Note: These may vary if moving to a new server)
- When complete, click Save. Your website should now be fully migrated and ready to use.


