We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45375
    • 14 Posts
    Hi, what do I change on LAMP shared hosting so that my modx install (done via Softaculous) into public_html/modx can be accessed by the URL of http://example.com, rather than the way it is accessed now at http://example.com/modx ? Thanks.

    This question has been answered by multiple community members. See the first response.

      • 43730
      • 2 Posts
      Why not just install modx inot public_html?
      • discuss.answer
        • 42046
        • 436 Posts
        I would suggest just moving the files to the public html root then modifying the directory locations in core/config/config.inc.php

        You'll need to change:
        $modx_core_path
        $modx_processors_path
        $modx_connectors_path
        $modx_connectors_url
        $modx_manager_path
        $modx_manager_url
        $modx_base_path
        $modx_base_url
        $modx_assets_path
        $modx_assets_url

        Also check config.inc.php in /manager and the public html root folder.
          • 45375
          • 14 Posts
          Thanks for the replies. I was tied up with writing my content for a while, but finally did perform the move just now. (Actually, I copied from public_html/modx to public_html so that I would have the original install to fall back on. Maybe that's a factor?)

          Everything seems fine, including FURLs, except that now I am constantly getting the timed-out dialogue in the center of the screen ("Your session has expired. Please proceed to login again."). The dialogue might pop up every minute, then not appear for many minutes. Clearing Cache and Flushing Permissions doesn't help. Any ideas on what went wrong? I've double-checked that I've successfully removed every reference to the old path. I've never seen that dialogue until after the move.

          Another behavior seems new, IIRC: previously, whenever I switched tabs in the manager between Resources/Elements/Files, I'd have to wait every time for a tab to load again. But now, when I switch tabs it often instantly changes without loading. Again, that doesn't seem time-based, so sometimes it doesn't load but then suddenly it will load on each tab change. I can't determine what the trigger is.

          • discuss.answer
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Make sure that your browser cache and cookies are cleared for the domain. The manager logouts sound like you're flipping between domains/subdomains, so it never knows if you're logged in or not. You also might try enabling the .htaccess in the /manager/ directory to turn off mod_rewrite in the Manager.
              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
              • 45375
              • 14 Posts
              "it never knows if you're logged in or not"

              Thank you for that insight. It turned out in this case that deleting the MODX cookies solved the problem.