Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

MAMP Issues: Server not Found.

I installed MAMP version 3.3 on my Macbook (OS X Yosemite v. 10.10.4) today.

I can start the servers; both Apache & MySQL servers appear to start with no issues; I have green lights on both.

However, when I hit "Open WebStart Page" I get a "Problem loading page" error. It says, "Firefox can't find the server at www.localhost.com."

With Apache port set to 8888 & MySQL port set to 8889, it's looking for the server here: http://www.localhost.com:8888/MAMP/?language=English.

With Apache port set to 80 & MySQL port set to 8889, it's looking for the server here: http://www.localhost.com/MAMP/?language=English.

With Apache port set to 80 & MySQL port set to 3306, it's looking for the server here: http://www.localhost.com/MAMP/?language=English.

I've tried typing "localhost", "localhost:8888", and "localhost:80" in to the URL, but that doesn't work either.

Does anyone know what's going on here and how I can fix it? No other threads on MAMP and/or server issues seem to address what I'm dealing with . . . or if they do, I'm not understanding them well enough to understand what to do.

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Scott,

All local development servers run at http://localhost which doesn't have a www subdomain or a TLD (Top Level Domain), so in the case of MAMP you can access is both via the URL I just mentioned or to load the landing page you can go to the following URL.

http://localhost:8888/MAMP

If you are running MAMP on port 80 you can simply omit the port number from the URL.

Hope that helps.

Hi Chris,

MAMP itself is looking for the WebStart page at the URLs I posted above. I get the same response at http://localhost, http://localhost:8888/MAMP, and http://localhost/MAMP.

Is this a problem with some setting in Firefox? When I type in URL http://localhost, it changes it to http://www.localhost.com/. Likewise, http://localhost:8888/MAMP becomes http://www.localhost.com:8888/MAMP/.