We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1343 ☆ A M B ☆
    • 2,213 Posts
    Hello,

    I have two questions and I know the one has already been answered, but I can’t find the answer so here goes:

    1. How do I setup multi sites? Say domain.com goes to folder 1 and example.com goes to folder 2. I seam to recall opengeek answering this and it’s one of those 50 ways to accomplish your goal type of things.

    2. I don’t know why I can’t figure this one out, but I can’t get wayfinder or tiny to install...

    I downloaded the files from the WTF site (love that name easy to recall!) and extracted the files to /core/packages/xxxxx

    I have tried leaving them in their folders so /core/packages/wayfinder-1.0.1-beta (no dice)
    I have tried putting them directly in the folder so /core/packages/modSnippet/xxxx and /packages/manifest.php (also no dice)

    To install i’m going to tools > workspaces - click add new package > search locally > yes (and it the popup window closes and nothing happens.)

    I would rather think this is a server problem, but I suspect i’m just doing something so stupid I can’t seam to notice it..

    Cent OS 4.6
    Apache 1.3.37
    PHP Version 5.2.1 (PDO drivers > sqlite2, sqlite, mysql)
    MySQL 4.1.22-standard-log
    (Commercial Shared Server - Not a local dev server)
    Standard installer fresh as of about 1 hr ago (thinking first install was botched)

    Any ideas?
    AMDbuilder

    (So far my only complaints are the menu needs some different icons for things like settings (I know focus is on beta first) and I don’t overly care for the new configuration system.. I like tabbed pages slightly better, but with time I could like the table style I guess)
      Patrick | Server Wrangler
      About Me: Website | Tweets |  MODX Hosting
      • 31037
      • 358 Posts
      I’ve only installed 097 once and that was a few weeks ago, but if I remember correctly you should not extract the add-on files but leave them as zip.
        • 29076
        • 615 Posts
        Number one I can’t answer, but on number this hopefully can get you a small step futher on the road.  smiley
          I think, thererfor I am! But what I am, and why...?
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: AMDbuilder at May 20, 2008, 01:17 AM

          1. How do I setup multi sites? Say domain.com goes to folder 1 and example.com goes to folder 2. I seam to recall opengeek answering this and it’s one of those 50 ways to accomplish your goal type of things.
          What can I say? I really liked Simon and Garfunkel... tongue

          How you setup multi-sites depends on your specific goals. Is this one database, multiple web document roots being served by individual domains and a common manager? Or is this one core serving multiple configurations that each point at their own manager and database?
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            Hello,

            Thanks for the replies!

            I will give the zips a try and see if that works. DOA! I knew I was doing something stupid!

            As for the multi sites it will be two sites with one manager/database. I’m not sure if I would need to point the domains all to the same folder or one folder for the main site and one for the second site. At the moment I am looking for the kiss method once the first beta comes out then I will start looking into a central core and manager install with separate DB/file for the other sites.

            Thanks again,
            AMDbuilder
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: AMDbuilder at May 20, 2008, 11:13 AM
              As for the multi sites it will be two sites with one manager/database. I’m not sure if I would need to point the domains all to the same folder or one folder for the main site and one for the second site. At the moment I am looking for the kiss method once the first beta comes out then I will start looking into a central core and manager install with separate DB/file for the other sites.

              As of revision 3722 this morning, you have a choice when sharing a single database and manager across multiple domains. You can choose to use the primary front-end context (known as ’web’) to handle all domains or you can create a unique gateway file for each domain to directly initialize a specific context. If you use a single gateway, you would use a plugin to switch contexts (the changes in revision 3722 make this plugin possible), something like so:
              <?php
              switch ($modx->config['http_host']) {
                  case 'domain2.tld:80':
                  case 'domain2.tld':
                      // if the http_host is of a specific domain, switch the context
                      $modx->switchContext('domain2.tld');
                      break;
                  default:
                      // by default, don't do anything
                      break;
              }
              ?>

              Alternatively, you would simply copy the index.php file from the default web context (along with the core.config.php and .htaccess for rewrite rules altered appropriately) to another directory and change the line
              $modx->initialize('web');
              to
              $modx->initialize('aContextNameOfYourChoice');
              I will be working on a tool in the reference manager interface that will allow deployment of a new context gateway without manual intervention (assuming you have the proper permissions to have the PHP process write files/folders in the locations you want to deploy to).

              Note that you could also just copy the index.php in the same directory and rename it to do this, but your rewrite rules would have to be smart enough to route requests to the appropriate context gateway.

              You can also still use a custom core location in either of these scenarios; this is independent of the context-driven multi-site capabilities.
                • 1343 ☆ A M B ☆
                • 2,213 Posts
                Thank you much! I can’t wait for this version to go gold so I can start using it on some of my site!

                Oh, two more issues/bugs (couldn’t find where to check/report) The installer doesn’t delete the setup folder (9.6.x works on same server) and the plugin uninstall doesn’t work (but you already knew that one)

                Just fix those and it’s ready to be RC1 right? grin

                AMDbuilder
                  Patrick | Server Wrangler
                  About Me: Website | Tweets |  MODX Hosting
                  • 25663 MODX Staff
                  • 12,272 Posts
                  You can report bugs on JIRA. See my signature link or the forum Bugs & Requests gray link at the upper right on the forums now points there.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 8245
                    • 37 Posts
                    OK, I know this is an old topic.. but it seems to be the best information regarding installs for multiple sites.
                    I posted a couple questions in this post
                    Basically I have a dedicated server that I run a hand full of sites from. (its managed with cpanel)
                    I want to rebuild all the sites with modx, and for obvious reasons would prefer to have a single install to do this with.
                    I guess the things I need to know are:
                    -what are the options available to do this.
                    -what are the advantages/disadvantages of these
                    -how is the install/setup accomplished.

                    I thank-you in advance for any help you can give me here.
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Let’s keep the multi-site discussions in this thread please.