Modx is one of the content Management Framework and its require some steps to follow when you move it from local to other server or from one to another server.You can also read Logged in User in Modx.
So, Here are the detailed steps how to successfully move a Modx Revolution site to other/live server
Before we start, it would be better to empty all of the cached content.
First of all,Log into the manager which the backend of Modx and then go to Site => Clear Cache.
Next,Clear your sessions from Security => Flush All Sessions
Then after change database information in
config file which is located at core/config/config.core.php. You need to change below information in config files.
$database_server = 'localhost'; $database_user = 'username'; $database_password = 'password'; $database_dsn = 'mysql:host=localhost;dbname=modx;charset=latin1';
Now,Most important point is to change base path into some core files of Modx Revolution.So,Change path into the below files
/config.core.php /connectors/config.core.php /manager/config.core.php /core/config/config.inc.php
config.inc.php files have some variable you need to change path and those variables are
$modx_core_path $modx_processors_path $modx_connectors_path $modx_manager_path $modx_base_path $modx_assets_path
NOTE: In core/config/config.inc.php,You have to update paths to
6 different resources.
Last but not least,If above steps doesn’t work that cleanly, it is also possible to simply delete contents contained within the
Also like : Accordion Menu with Modx
There it is, you’re done! Visit your Modx site in it’s new location and it should be live.