How to integrate MAMP in Komodo IDE

Ok here is the latest news:

  1. I did a clean install of both XAMPP and MAMP. Now I am no longer able to preview my files in either one of the two environments.
  2. The XAMPP version I installed yesterday was 7.1.6 but it turns out there is a more recent version 7.1.7, which is the one I installed today.
  3. Both local servers work fine. If I enter http://localhost in a separate browser when either one of them is running I get the desired result. So I guess the problem really is either with Komodo 10 or with me…

How can I send you the 2 project files? I don’t see an option for that in the browser.

-Franco

You’re able to preview both XAMPP and MAMP through browser preview if you manually enter the url right? So it’s just the mapping that’s broken?

I believe you should be able to zip up the project files and drag the zip onto the comment area. If not please just upload it to dropbox, google drive or similar.

Thanks!

Link to my dropbox:

It’s a 1.2 GB document, but all you really need is the index.html file at the top

I’m sorry, I wasn’t asking for your entire project - only the .komodoproject files. Sorry for the confusion.

Well, now you have everything:

Thanks. What about the XAMPP one?

1.2GB is a bit much to download :stuck_out_tongue:

Nothing really stands out as wrong in that project file, except maybe the live folder. I kinda doubt it’s related, but it’s worth a shot.

Try removing the live folder from your project and instead changing your project root to the htdocs folder (right click project > Preferences).

In addition, could you show a screenshot of your mapping preferences as well as of the browser preview popup that shows when you trigger it on a file that should be covered by the mapping?

I note in your MAMP project file that the mapped configuration has http://localhost:8888 which you had not mentioned anywhere else in this post. Is that correct? What exactly are you writing in the browser when it works? Every example you’ve given has only been http://localhost which is not the same.

  • Carey

That’s something I tried out, as MAMP Apache default port number is 8888. I didn’t have anything before that. Nothing changed by adding this port number, though.

yes, it’s large and it doesn’t contain the project file :-);

Here it the XAMPP version:

Please try my suggestions here:

I will, thank you.

@Careyh: sorry forgot the answer your other question: So far I always only have entered http://localhost in the separate browser window or in the preview panel. It doesn’t make any difference.

As for the screenshots, here they come:

URI mapping:

Preview tab:

Result:

Result when entering http://localhost directly in the preview pane:

Could you try

Help > Troubleshooting > Reset file level preferences.

Also you never said if you tried Carey’s suggestion about setting the preference globally (and not on the project), can you try that?

I will.

Yes, I did try setting the preferences globally - no difference, but I’ll try again.

Yesterday I could no longer post here. Did you get my Tweet?

One more thing: MAMP allows to select between two users, oneself and what they call “Unix users”. If I select myself, nothing works anymore, not even entering http://localhost manually. May be that helps.

You were posting too much urls to localhost so the antispam system prevented you from posting anything within the link. I changed your user level so you shouldn’t have any problems anymore. Feel free to PM me on the forums if you won’t be able to post again, I’ll help you.

It worked !!!

Thank you guys, I really appreciated it.

One more thing: I’d rather have the preview in a new tab right next the source file and not underneath it - it’s simply a matter of display “economics”. There is much more space horizontally than vertically. Can this be done?

-Franco

Yes. You can double-click on the splitter (the one that splits your code and the preview) to change its orientation.

What did? There were a lot of suggestions in here. I’m almost as excited as you must be haha.

  • Carey

Help > Troubleshooting > Reset file preferences !!!

1 Like

Awesome. I’ve set that comment from Nathanr as the solution for this thread.

  • Carey