Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 secion 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?

I'm a complete rookie at this so any help would be appreciated.

Many thanks,

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.