We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45900
    • 53 Posts
    I have the dev in subfolder (mywebsite.com/modx/) Now the site is ready. I found out that there is the way which is to keep the site under modx folder but just use .htaccess to point it.
    https://my.bluehost.com/cgi/help/347
    I have tried that but the problem is it only redirect to to mywebsite.com/modx/

    So I think the right way is to move the whole of my file to the root folder not in the sub and change the config file and run setup again as this recommendation?
    http://stackoverflow.com/questions/13556466/move-modx-site-from-subfolder-to-root-folder

    I'm using MODX Revolution 2.2.10-pl

    Thank you.
      • 3749
      • 24,544 Posts
      Those steps look right to me. Be sure that all paths you enter while editing the config files have a trailing slash.

      Check the config.inc.php file after running setup and make sure that *all* the paths and urls have been updated properly.

      When you're finished, rename the original subfolder and give the site a real workout to see if anything breaks.
        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
        • 45900
        • 53 Posts
        Hi BobRay,

        Thanks a lot for your reply. Before I move the site I would like to backup everything on my local (My Mac OS Machine).
        1.I create new database on my local and import database from the dev
        2.I package the file and unpack to the right folder on my computer
        3.I change the path on both config.inc.php and config.core.php
        4.I put the setup folder and did the install as the suggestion above.
        5.The set up set I have successful setup (Although, there are some issue about writable folder, I have managed to change the right suceessfully)

        In the end it's success but.. while I try to goto localhost/manager I have got this:



        Warning: include_once(/customers/e/7/8/thaicom.dk/httpd.www/modx/core/model/modx/modx.class.php): failed to open stream: No such file or directory in /Users/Joy/Sites/backup/manager/index.php on line 50
        
        Warning: include_once(): Failed opening '/customers/e/7/8/thaicom.dk/httpd.www/modx/core/model/modx/modx.class.php' for inclusion (include_path='.:') in /Users/Joy/Sites/backup/manager/index.php on line 50
        
        Warning: include(/customers/e/7/8/thaicom.dk/httpd.www/modx/core/error/unavailable.include.php): failed to open stream: No such file or directory in /Users/Joy/Sites/backup/manager/index.php on line 51
        
        Warning: include(): Failed opening '/customers/e/7/8/thaicom.dk/httpd.www/modx/core/error/unavailable.include.php' for inclusion (include_path='.:') in /Users/Joy/Sites/backup/manager/index.php on line 51
        Site temporarily unavailable!
        


        It seems as if the server still want to call the old path. I don't know how to fix it now.

        Thank you.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Or try Vapor or Teleport.

          https://modxcloud.com/userguide/how-tos/import-sites-with-vapor.html
          Vapor import works just as well on any server. Use the first "export" section instructions above, then get the sitename.package.zip from your original site's core/packages/ folder and put it in a new installation's core/packages and install like any package. Make sure you are logged in to the original site's Manager before running the Vapor script.

          https://github.com/modxcms/teleport

            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
            • 3749
            • 24,544 Posts
            Try deleting all the files in the core/cache directory and clearing your browser cache and cookies.
              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
              • 45900
              • 53 Posts
              I did try delete all files in core/cache but I still have no luck. Any other suggestion?
                • 3749
                • 24,544 Posts
                That almost certainly means that there's something wrong in the config files.

                You can double-check them all manually, or SiteCheck will do it for you. It's not free, but it's a nice tool to have around: https://gumroad.com/l/DLChJ
                  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
                  • 46016
                  • 7 Posts
                  Have the same question but less skills: There are many config-something.php's hanging around in my 2.2.10 installation. Which of them to edit? only that in the root or all I can find?

                  Best regads and Merry Christmas

                  Axel

                  Quote from: joyobject at Dec 20, 2013, 07:02 PM
                  I have the dev in subfolder (mywebsite.com/modx/) Now the site is ready. I found out that there is the way which is to keep the site under modx folder but just use .htaccess to point it.
                  https://my.bluehost.com/cgi/help/347
                  I have tried that but the problem is it only redirect to to mywebsite.com/modx/

                  So I think the right way is to move the whole of my file to the root folder not in the sub and change the config file and run setup again as this recommendation?
                  http://stackoverflow.com/questions/13556466/move-modx-site-from-subfolder-to-root-folder

                  I'm using MODX Revolution 2.2.10-pl

                  Thank you.
                    • 3749
                    • 24,544 Posts
                    These:

                    (root) config.core.php
                    connectors/config.core.php
                    manager/config.core.php
                    setup/config.core.php

                    core/config/config.inc.php


                      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
                      • 46016
                      • 7 Posts
                      Thank you very much

                      Best regards

                      Axel

                      Quote from: BobRay at Dec 23, 2013, 05:25 PM
                      These:

                      (root) config.core.php
                      connectors/config.core.php
                      manager/config.core.php
                      setup/config.core.php

                      core/config/config.inc.php