We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32599
    • 21 Posts
    Hi,
    I found this here: http://apaxvn.blogspot.com/2009/07/how-to-move-your-modx-site-to-your.html
    and would like to know if this is the right way to move an existing modx site to a new server?
    Here’s the text from the url above:

    How to move your Modx site to your server

    I’ve been working with Modx recently, and it’s a cool CMS system. One area that I initially struggled with is getting a local site working on a hosting server. So here are my observations on what to do, or try, to get it working for you:

    1. Create the database on your server
    2. Upload all the site files to your server
    3. In ’manager/includes’ folder, make sure the ’config.inc.php’ file is amended to suit your server database details
    4. In ’assets/cache’ folder, delete the 2 (probably) ’siteCache.idx.php’ and the ’sitePublishing.idx.php’ files.
    5. Login in to the manager.
    6. Go to ’Tools / Configuration’ and select the ’Interface & Features’ tab.
    7. There, amend the ’Resource path’ value to reflect your servers site path to the ’asset’ folder. Then save.
    8. Once saved, click the ’File Manager’ tab
    9. There, amend the ’File Manager Path’ to reflect your servers site path to the web folder. Then save.

    Your website should now work.

    Will this work?
    Thanks.
      • 32599
      • 21 Posts
      So I didn’t try this but did it another way.
      I did a new install of modx on the new server and then imported the modx_site_content table of the old site into the new site database using phpMyAdmin.
      I then just moved all the files needed and re-created the templates in the manager.

      This seems to work but I don’t know if it is the correct way to do things.
      Hope this helps some one in the future,
      Wolfie.
        • 3749
        • 24,544 Posts
        Quote from: wolfie at Nov 19, 2010, 10:41 AM

        So I didn’t try this but did it another way.
        I did a new install of modx on the new server and then imported the modx_site_content table of the old site into the new site database using phpMyAdmin.
        I then just moved all the files needed and re-created the templates in the manager.

        This seems to work but I don’t know if it is the correct way to do things.
        Hope this helps some one in the future,
        Wolfie.

        That can work if you have a *very* simple site, but it’s only safe if you install *exactly* the same build of MODx as the one used on the site you’re moving. You’re also missing any of the following that you might have had on the old site:

        other users
        user groups
        resource groups
        security permissions
        non-default MODx configuration settings
        *** any snippets, plugins, templates, template variables, categories, or chunks not present in the basic install ***
        any customized configuration settings for add-ons such as TinyMCE.
        other things I can’t think of right now


          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 3749
          • 24,544 Posts
          Quote from: wolfie at Nov 19, 2010, 10:41 AM

          So I didn’t try this but did it another way.
          I did a new install of modx on the new server and then imported the modx_site_content table of the old site into the new site database using phpMyAdmin.
          I then just moved all the files needed and re-created the templates in the manager.

          This seems to work but I don’t know if it is the correct way to do things.
          Hope this helps some one in the future,
          Wolfie.

          That can work if you have a *very* simple site, but it’s only safe if you install *exactly* the same build of MODx as the one used on the site you’re moving. You’re also missing any of the following that you might have had on the old site:

          other users
          user groups
          resource groups
          security permissions
          non-default MODx configuration settings
          *** any snippets, plugins, templates, template variables, categories, or chunks not present in the basic install ***
          any customized configuration settings for add-ons such as TinyMCE.
          other things I can’t think of right now

          BTW, you *do* see the irony of saying you found a page listing the correct way to do it, doing it a completely different way, then saying you’re wondering if you did it the correct way, right? wink

          Also, here are the "official" steps:

          Revolution: http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server

          Evolution: http://wiki.modxcms.com/index.php/Moving_Site_To_Another_Location


            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 32599
            • 21 Posts
            It is a simple site.
            BTW, you *do* see the irony of saying you found a page listing the correct way to do it, doing it a completely different way, then saying you’re wondering if you did it the correct way, right?
            Sorry for any confusion and thanks for the links.
              • 9995
              • 1,613 Posts
              in short:

              i download DB files, and make copy of FTP files.
              then upload FTP files to new server and place DB files into the new DB
              then edit the config file with new DB names and set chmod for some maps like images/export/etc and cache map and files.
              then login in manager and clear cache, go to config and reset paths and u should be done.

              i like direct admin allot.
                Evolution user, I like the back-end speed and simplicity smiley
                • 32599
                • 21 Posts
                Thanks fourroses666.