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 Creating the Menu and Footer Starting the Project

Carlos Belnap
Carlos Belnap
4,564 Points

Browser won't display localhost. Why?

When I click "Open start page" on Windows MAMP, Chrome says "Page not available." Apache server is running, port is set to 80, set windows firewall to allow port 80 and Apache and MAMP. Also, for some reason Windows kept creating duplicate rules for Apache so I tried deleting those. Still nothing.

Is there anything else I should try besides a reinstall? Or is that the first thing I should have tried?

P.S. When MAMP is setting up the Apache server, it fails the first few attempts and displays "Could not wait for starting of Apache child. Apache parent process id is: 7332" or some other four-digit number. It eventually works, but is this related?

Colton Fitzgerald
Colton Fitzgerald
15,815 Points

Do you have Skype running? Skype tends to screw with MAMP.

Jason Taylor
Jason Taylor
3,059 Points

Maybe try a different port number? 8080 or 8000?

Carlos Belnap
Carlos Belnap
4,564 Points

Thank you both for your suggestions. Jason Taylor: 8080 and 8000 did not work. Colton Fitzgerald: Task Manager says Skype is not running. Any other programs known to interfere? Spotify? Avast? CCleaner? Spybot? Dropbox?

Jason Taylor
Jason Taylor
3,059 Points

Sorry, have to ask, did you try changing the port in MAMP and restarting the web server before trying to pull it up at localhost:8080 or :8000?

Jason Taylor
Jason Taylor
3,059 Points

Looks like the default is 8888 "By default, Apache runs on Port 8888 and MySQL on Port 8889. You can change the ports at any time under Preferences > Ports."

2 Answers

Carlos Belnap
Carlos Belnap
4,564 Points

XAMPP ended up giving me the same trouble. People posted some other suggestions, but I just restored my system to factory default, upgraded from Windows 8 to 8.1, and then installed XAMPP and that did the trick!

Hi Carlos,

I've been using XAMPP with Windows 8 with no problems. It's also easy to set up virtual hosts.

Jeff

Carlos Belnap
Carlos Belnap
4,564 Points

Yeah...that's where I'm at right now. ^o^