We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38175
    • 48 Posts
    I am using modx on localhost to develop and test sites before going live with them. I am using MAMP on my iMac. What is the easiest way to have multiple test sites on localhost?

    Thanks
    SAM
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Create multiple root folders in MAMP? I haven't used MAMP, although I suspect it's similar to XAMPP with a root htdocs directory that you can add folders to? Install MODX on each folder, just like you would on a live server. Your localhost manager url would be localhost/siteFolder/manager/.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Yes, it's easy with MAMP. I drag the default Assets/MAMP/htdocs folder to the Finder sidebar to make things easier, and use subdirectories. I also have my browser's home page set to localhost so I get a listing of my installations. I access these from my Parallels virtual machines using the IP address assigned by my wireless router, since I'm too lazy to set up proper hosts files for the Windows virtual machines.

        The only trick is to make sure to get the paths right when moving to a production server, and especially not to forget about the RewriteBase in the .htaccess file.
          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
          • 38175
          • 48 Posts
          Thanks Quote from: frogabog at May 02, 2013, 01:21 PM
          Create multiple root folders in MAMP? I haven't used MAMP, although I suspect it's similar to XAMPP with a root htdocs directory that you can add folders to? Install MODX on each folder, just like you would on a live server. Your localhost manager url would be localhost/siteFolder/manager/.
            • 38175
            • 48 Posts
            Thanks. Quote from: sottwell at May 02, 2013, 03:32 PM
            Yes, it's easy with MAMP. I drag the default Assets/MAMP/htdocs folder to the Finder sidebar to make things easier, and use subdirectories. I also have my browser's home page set to localhost so I get a listing of my installations. I access these from my Parallels virtual machines using the IP address assigned by my wireless router, since I'm too lazy to set up proper hosts files for the Windows virtual machines.

            The only trick is to make sure to get the paths right when moving to a production server, and especially not to forget about the RewriteBase in the .htaccess file.