Server Fault is a question and answer site for system and network administrators. 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 am a first time web app developer trying to develop a web application. I downloaded MAMP and have a simple index.html file in the htdocs folder. The apache root directory is also set to htdocs folder.

But for some reason it would not execute index.html when i type localhost:8888. I used to have a different folder in htdocs and now the link is always directed to localhost:8888/folder instead of localhost:8888/index.html. How can i direct the MAMP to open index.html and not that folder?

share|improve this question

migrated from Nov 22 '11 at 8:23

This question came from our site for professional and enthusiast programmers.

Did you set the serverroot or documentroot. set the documentroot to the proper value. In addition, make sure you restart the server.

share|improve this answer

Your Answer


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