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 Setup Your Local Development Environment

Sean Flanagan
Sean Flanagan
33,235 Points

localhost

Hi.

When I open localhost, all I get is:

" This localhost page can’t be found No webpage was found for the web address: http://localhost/ HTTP ERROR 404 "

The servers are running.

What am I doing wrong? How do I put it right?

Thanks in advance.

3 Answers

Alena Holligan
STAFF
Alena Holligan
Treehouse Teacher

You can "Use Anyway" or you can keep with the 8888. If you keep 8888, you just have to include the port in the URL and that's fine :)

Alena Holligan
STAFF
Alena Holligan
Treehouse Teacher

By default MAMP will open http://localhost:8888/

To change ports to use the normal web and mysql points, go into preferences > ports > "Set Web & MySQL ports to 80 & 3306"

Sean Flanagan
Sean Flanagan
33,235 Points

I clicked Start Server. This dialogue box came up saying that "Apache needs open port 80 which is already used by System".

Options:

Use next free port Set up new port Use anyway Cancel

Sean Flanagan
Sean Flanagan
33,235 Points

I clicked Use anyway and then the MAMP box came up. I clicked Start Server and then that Ports Used dialogue box came up again, so I'm running around in circles here.

I tried 8888 but it won't connect.