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 Build a Simple PHP Application Getting Started with PHP Install PHP on Mac OS X

[SOLVED] Unable to connect

Unable to connect

Firefox can't establish a connection to the server at localhost:8888.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. I keep getting this message
Andrew Rady
Andrew Rady
20,880 Points

Can any other browsers connect?

@Andrew Rady, yes im still on treehouse and im able to go to any other website

Andrew Rady
Andrew Rady
20,880 Points

are you using mamp for your local server?

Yes im om a Mac, I had another folder in the htdocs for a wordpress theme I was developing, I temporary removed it from the htdocs to see if that was the problem and still nothing.

Andrew Rady
Andrew Rady
20,880 Points

try putting only one file in your htdocs as index.php with...

<?php phpinfo(); ?>

if you get the information then there is something with your code, if not then I would check your settings in your mamp application.

Okay, I actaully just uninstalled MAMP im going to get a fresh version and see if that works if that doesnt I will try <?php phpinfo(); ?> thank you for the help

Andrew Rady
Andrew Rady
20,880 Points

funny, I was going to recommend that next haha hope it works out, let me know!

Yup reinstalled MAMP and everything is working great!

Andrew Rady
Andrew Rady
20,880 Points

Awesome! Good to hear!

Hi Thomas Brushel, just letting you know that I've updated your question title to indicate that you've figured it out.