Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed mamp for the first time onto my mac and I'm trying to view some PHP files I've loaded into the htdocs section of mamp. When I type localhost into my browsers, it says it can't connect to the server.

What do I do to fix this?

share|improve this question

Start the MAMP application. If it's installed correctly it will automatically launch your default browser with http://localhost:8888/MAMP/ MAMP runs under port 8888 by default.

To view files in htdocs simply go to http://localhost:8888/FILENAME.php . Be sure to add the folder(s) (directory(ies) as needed. e.g. http://localhost:8888/site1/FILENAME.php

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.