2

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?

James Mertz
  • 26,224
  • 41
  • 111
  • 163
Charlie
  • 63
  • 1
  • 2
  • 6

1 Answers1

3

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

Greg
  • 31
  • 2