We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54439
    • 11 Posts
    I notice that this is ModX Revolution. Is this the same as ModX?
      • 54439
      • 11 Posts
      One thing.. the original site was in 2.3.2, which may be why it was hacked. So should I install another at this level first and then upgrade? Or can I do this transfer up to the current 2.6.5 OK?
        • 3749
        • 24,544 Posts
        If you download MODX from modx.com/download and unzip it, you should see the setup directory in the MODX root (along with the manager and connectors directories. That's the one you want to run: yoursite.com/setup.

        I notice that this is ModX Revolution. Is this the same as ModX?

        Yes, though it's now spelled MODX.

        I'm not sure what to advise you. The best way to proceed would be to empty the DB and delete all the files, then restore a backup of the site from before the hack. Obviously, that won't be possible if you have no such backup.

        In that case, I would probably try to save as much of the site's content and DB somewhere save (like your local machine), then wiper the DB and files and install MODX 2.6.5 using the method described in the link. Then I'd restore the content by cutting and pasting. It's a slow way to go, but I don't trust the hosts claim that all hacked files have been removed. Even if they're correct, they may have removed some files belonging to MODX add-on components that will make the site crash.

        The Wayback Machine can help you recover site content from before the hack. MODX creates its pages dynamically by combining Templates, chunks, Resource content and the results of snippets (much of which is stored in the DB rather than files). Those will all be mixed together in the Wayback view, but at least you'll have a copy of what the pages looked like and the content they contained.

          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
          • 54439
          • 11 Posts
          Thanks for all your help. I appreciate the time and unfortunately, I have to agree with you.

          I have the DB and the files. The smartest and safest thing is to rebuild, even if it's not the fastest.

          Honestly, I am surprised that there weren't backups or any kind of protection.

          The setup doesn't show up when installed through cPanel... I assume because it is run automatically by the software.

          Thanks again,
          George
            • 3749
            • 24,544 Posts
            I'm sure the cPanel install removes the setup directory when it finishes (something you should do manually once the site is working), but save it somewhere in case you need to re-run it on the original install.

            You'll get a new (possibly updated) copy of it automatically every time you upgrade.
              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