We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28353
    • 28 Posts
    Hey Guys,

    I am really new with MODx, but i have learned a lot over the course of 2 months. Now that i’ve finished my site on my test server i want to move it over to my live server where i have set up MODx already. I just need to transfer everything over to the live server. Is there an easy and fast way to do this? Please let me know!

    stalwil
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      This isn’t as simple as drag and drop, but if you have a good understanding of what’s going on, it can be fairly simple. Basically, you have to concern yourself with 2 things: the files on your webserver, and the database. I’d recommend the following:

      1. Use mysqldump or a similar utility to dump the contents of your dev database into a file, then slurp that file into the database on the production webserver. The dumping could boil down to a line like this:
      mysqldump -uyour_user -pyour_password -hdatabase_hostname database_name  > /where/you/want/to/save/thedump.sql


      The slurping would look something like this:
      mysql -uyour_user -pyour_password -hdatabase_hostname < /where/you/want/to/save/thedump.sql


      *note that there is NO SPACE between the -p and the password! I just omit the spaces between all the mysql and mysqldump flags just to remind me that the password flag (-p) expects the password immediately afterwards.

      2. Copy your files from the development webserver to the production webserver. You can do this with an FTP client, but the thing you want to watch out for is the permissions. I could be more specific, but see if the FTP option (the drag and drop) works.

      3. Verify that you webserver has the same PHP modules required to run MODx (usually, it’ll be really obvious if it doesn’t... something with break). Also, you’ll need to make sure that your database has the same user and password as the dev database ... the user info lives in a separate database (not the MODx database), so you have to be sure that the user info exists in the new database.
        • 3749
        • 24,544 Posts
        Quote from: stalwil at Dec 15, 2008, 12:44 AM

        Hey Guys,

        I am really new with MODx, but i have learned a lot over the course of 2 months. Now that i’ve finished my site on my test server i want to move it over to my live server where i have set up MODx already. I just need to transfer everything over to the live server. Is there an easy and fast way to do this? Please let me know!

        stalwil

        Here are the steps you need to follow: http://modxcms.com/moving-sites-to-new-servers.html
          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
          • 24393
          • 83 Posts
            stevesunderland.com
            GRAPHICS | INTERACTIVE | MARKETING
            xhtml + ajax + seo websites powered by modx
            • 28353
            • 28 Posts
            hey guys,

            thanks for the quick response!!!

            stalwil