We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19872
    • 1,078 Posts
    Does the lengthy process have to be performed to upgrade from 2.2.10 to 2.2.11? I spent most of a day backing up files, installing and such. On a server where directory merging must occur using SSH. Makes me wish now I were on a MODx cloud. Yikes.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If you have SSH it should just be a few minutes.

      Use scp to upload the new MODX zip file (from your local machine)
      scp modx-2.2.11-pl.zip [email protected]:/some/remote/directory

      Actually I think it's possible to download directly from the MODX repository using your SSH shell on your server -
      wget http://modx.com/download/direct/modx-2.2.11-pl.zip


      In your SSH shell, two lines to back up the site (note the space after -u for dbuser, no space after -p for dbpassword):
      mysqldump -u dbuser -pdbpassword database_name > dumpfilename.sql
      tar -cvzf sitebackup.tar.gz /path/to/webroot

      Next, unzip the modx-2.2.11-pl.zip file, then cp or mv the files in the unzipped directory to your site root:
      unzip modx-2.2.11-pl.zip
      cp -r modx-2.2.11-pl/* /path/to/webroot/

      Then run setup in your browser as usual. [ed. note: sottwell last edited this post 12 years, 8 months ago.]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 19872
        • 1,078 Posts
        SSH is much faster. However, because I'm such a novice with it, everything takes much longer cause I'm double checking all my strings and being overly cautious. I'm sure I'll get faster. Fortunately after this recent update from 2.2.8 to 2.2.10, I documented in detail each step, so at least I have my notes to go back to.

        So I guess the upgrade is the same. Back everything up including the database. Then after doing the proper logout, unzip the new MODx folder on the server and do a directory merge. Got it. I'll time myself and see how fast I can do it.

        Thanks for the feedback.