2.14.4.6. Transfer MODX

To properly transfer a MODX site, it is usually sufficient to follow these steps:

  1. If site is active, perform the following actions:
    1. Log in to site admin panel.
    2. Go to "Settings → System settings":
    3. In drop-down list, select "Site" and find "Site status" value in table; double-click "Yes" value to open parameter for editing and change it to "No":
    4. In "Management" section, click "Clear cache" and "End all sessions":
    5. Additionally, manually clear site cache.
  2. Transfer site files and database (if required) using instructions appropriate for your situation.
  3. In configuration file config.inc.php, if it exists, adjust the absolute path to the core directory of the site. Path to the site directory must have the form /home/user/example.com/www/core, where instead of user you must specify the hosting account name, and instead of example.com/wwwpath to site files.
    1. If, after changing paths in the config.inc.php file, site displays a 503 error, you should additionally check paths specified in configuration files /core/config/config.inc.php, /manager/config.core.php, /connectors/config.core.php. Such changes may be required when using older or modified versions of CMS, since by default it is sufficient to perform only the previous step.
  4. If another domain will be used after the transfer, in the configuration file /core/config/config.inc.php change the site address to the new one in the line with the $http_host parameter (the example shows the site address example.com):
    $http_host='example.com';
  5. If site was not available and cache was not cleared, then this should be done manually, since use of outdated cache may lead to problems in site display.
  6. Check the site operation.
Content