Loading...
Changes Saved.
Error Occurred!
Home Products Blog Community Support Resellers

Moving JEM to a different domain or web host

If you are looking to move JEM to a different domain, you do not need to reinstall it.  Just follow these steps:

  1. Copy all of your JEM files from your current domain to the new domain.  Make sure to copy all the files in BINARY format.
  2. Do a database dump of the JEM database tables.  Save this as a SQL backup file. You can usually do this using your web hosting control panel's database management tool like PHPMyAdmin or something similar.
  3. Create a new database on your new host / domain name.  You must also create the database username and password as well as apply all database permissions to the database user.
  4. Once the database has been created, view it using PHPMyAdmin or something similar and import the SQL backup file that you created from earlier.  Once it is imported, all your JEM data will remain intact in the new database.
  5. Open up /system/application/config/config.php and /system/application/config/database.php for editing.  You must edit all the lines that pertain to your new domain name:

    for config.php:

    $config['base_license_domain_name'] = 'domain.com';
    $config['base_physical_path'] = 'base_physical_path';
    $config['base_folder_path'] = 'base_folder_path';
    $config['base_domain_name'] = 'base_domain_name';
    $config['base_subdomain_name'] = 'base_subdomain_name';
    $config['aff_cookie_name']    = 'jrox_com';
    $config['cookie_prefix']    = '';
    $config['cookie_domain']    = '.{base_domain_name}';
    $config['cookie_path']        = '/';

    for database.php:

    $db['default']['hostname'] = 'localhost';
    $db['default']['username'] = 'database_user';
    $db['default']['password'] = 'datbase_password';
    $db['default']['database'] = 'database_name';


  6. Save it and make sure it is reuploaded back to your /system/application/config folder.  You need to double check to make sure it is uploaded as JEM tries to make those files read-only for security purposes.
  7. You have now moved JEM to a different domain name or web host.



Related Articles