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 Windows 7

Ila Gupta
Ila Gupta
5,147 Points

Blocked Port error when Installing XAMPP

This is the error which I am getting while installing XAMPP

14:51:35 [Apache] Status change detected: running 14:51:41 [Apache] Status change detected: stopped 14:51:41 [Apache] Error: Apache shutdown unexpectedly. 14:51:41 [Apache] This may be due to a blocked port, missing dependencies, 14:51:41 [Apache] improper privileges, a crash, or a shutdown by another method. 14:51:41 [Apache] Press the Logs button to view error logs and check 14:51:41 [Apache] the Windows Event Viewer for more clues 14:51:41 [Apache] If you need more help, copy and post this 14:51:41 [Apache] entire log window on the forums

How should I fix this? I have Uninstalled Skype also to avoid conflict but still its not working.

2 Answers

Aaron Gill-Braun
Aaron Gill-Braun
180 Points

Open Skype.

Tools -> Options -> Advanced -> Connection.

Disable the "Use port 80 and 443 for alternatives for incoming connections"

Sign Out and Close all Skype windows. Try restarting your Apache, and computer.

Ila Gupta
Ila Gupta
5,147 Points

Thanks for your answer. But I have already uninstalled Skype, I am not using it. Still I am getting this error.

Aaron Gill-Braun
Aaron Gill-Braun
180 Points

in task manager look for any instances of programs that may be using whatever port your on. Try running on port 8888

Ila Gupta
Ila Gupta
5,147 Points

Oh It works now!!! Changed to the port 8888, that connected to local host. Thank you for sharing the solution to the problem.

Aaron Gill-Braun
Aaron Gill-Braun
180 Points

Your welcome glad to help :)