2.13.6.6. MODX transfer
To correctly transfer a site running CMS MODX, it is usually sufficient to do the following:
- If the site is active, follow these steps:
- Log into the admin panel of the site.
- Go to section "settings → System settings":
- In the drop-down list, select "Site" and find the value in the table "Site status", double click on the value "Yes" open the parameter for editing and change it to "No":
- In chapter "Control" click "Clear cache" and "End all sessions":
- Additionally manually remove the site cache.
- Transfer site files and database (if required) using the one that suits your situation instruction.
- In the config file
config.inc.php
if such exists, correct the absolute path to the directory "kernels" site. The path to the site directory should look like/home/user/example.com/www/core
where instead ofuser
should be specified hosting account nameand instead ofexample.com/www
— path to site files.- If after changing the paths in the file
config.inc.php
the site displays error 503, then you should additionally check the paths specified in the configuration file/core/config/config.inc.php
,/manager/config.core.php
,/connectors/config.core.php
... Similar changes may be required when using older or modified versions. CMS, since by default it is enough to execute only the previous point.
- If after the transfer another domain will be used, in the configuration file
/core/config/config.inc.php
change the site address to a new one in the line with the parameter$http_host
(the example shows the site addressexample.com
):$http_host='example.com';
- If the site was not available and the cache was not cleared, then this should be done manually, as the use of an outdated cache can lead to problems in the display of the site.
- Check the site is working.