Back to Top

How to move Modx site to Live server


Sometimes It’s tempting to move your files and database so In This tutorial will show you how to move your Modx Revolution site from one server to another.

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

Step 1:

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

Step 2:

Next,Create the database on your server,import tables and upload all the site files to your server

Step 3:

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.

Read: To Reset resourceID in MODx

$database_server = 'localhost';
$database_user = 'username';
$database_password = 'password';
$database_dsn = 'mysql:host=localhost;dbname=modx;charset=latin1';

Step 4:

Now,Most important point is to change base path into some core files of Modx Revolution.So,Change path into the below files

/core/config/ files have some variable you need to change path and those variables are


NOTE: In core/config/,You have to update paths to 6 different resources.

Step 5:

Last but not least,If above steps doesn’t work that cleanly, it is also possible to simply delete contents contained within the core/cache folder.

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.

I hope you have enjoyed this article.Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How to set Module Position in Joomla

Posted on 7 years ago


How to handle Exception in PHP5

Posted on 4 years ago


Step by step Node JS Tutorial for Beginner

Posted on 3 years ago


Hello world

Updated 1 month ago

Nick Carter

In depth Understanding of Laravel Core

Updated 3 months ago


ECMAScript 6 New Features – 2

Updated 1 year ago


The Reader’s Poll – June 2015

Posted on 4 years ago


The Reader’s Poll – August 2014

Posted on 5 years ago


The Reader’s Poll – June 2014

Posted on 5 years ago


The Readers’ Poll – May 2014

Posted on 5 years ago


The Readers’ Poll – August 2013

Posted on 6 years ago