We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5645
    • 8 Posts
    Newbie here....

    I am testing MODx using MAMP

    I placed modx within the "htdocs" folder but I wasn’t able to get index.php running undecided ...any ideas or suggestions ?
      • 27226
      • 186 Posts
      May be you haven’t run install/index.php before? wink
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        By default, MAMP runs on port 8888 (if I recal correctly), so you have to do http://localhost:8888 to get it. You can set it to use port 80 if you prefer.
          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
          • 5645
          • 8 Posts
          thanks for responding:

          yes i did run the install/index.php and i did set the port to 80 ....

          Here are some screenshots of what I get using FF:





          any more clues :-( ?
            • 18397
            • 3,250 Posts
            Make sure you are the owner of those files and you can read and write them.

            I just dropped MODx in and it worked out of the box in MAMP...
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Same here.

              It looks like the php files aren’t being parsed by php at all, the php code is just being dumped to the browser.
                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
                • 31337
                • 258 Posts
                look at the URL in those screenshots smiley

                You’re viewing the files on the filesystem rather than thru apache.

                  • 18397
                  • 3,250 Posts
                  Excellant eye Victor!
                    • 5645
                    • 8 Posts
                    How to get the browser to view the files through Apache?..sorry being such an a@#...s, I feel so stupid asking these questions...... embarrassed

                    "look at the URL in those screenshots
                    You’re viewing the files on the filesystem rather than thru apache."



                      • 4041
                      • 788 Posts
                      as far as I know, you should still be using an http address to view the sites(files)...

                      on my windows box I type

                      http://localhost/

                      in the address bar and this works. your setup should be similar as you are actually running a web server and will need to access pages there just as if they were on the net.
                        xforum
                        http://frsbuilders.net (under construction) forum for evolution