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 trialBrian Morrison
16,524 PointsXAMPP: Can someone explain this error and how to address it. says "Blocked Port" when starting Apache
1:44:25 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port 1:44:25 PM [Apache] Attempting to start Apache app... 1:44:25 PM [Apache] Status change detected: running 1:44:27 PM [Apache] Status change detected: stopped 1:44:27 PM [Apache] Error: Apache shutdown unexpectedly. 1:44:27 PM [Apache] This may be due to a blocked port, missing dependencies, 1:44:27 PM [Apache] improper privileges, a crash, or a shutdown by another method. 1:44:27 PM [Apache] Press the Logs button to view error logs and check 1:44:27 PM [Apache] the Windows Event Viewer for more clues 1:44:27 PM [Apache] If you need more help, copy and post this 1:44:27 PM [Apache] entire log window on the forums
Brian Morrison
16,524 PointsYour advice should of worked I believe, but unfortunately it gives the same error. Thank you for your time though. It is appreciated. :)
Brian Morrison
16,524 PointsThank you all for your suggestions for they were all on point for troubleshooting this problem. The final solution for me ended up being simple. I right clicked on the XAMPP icon and choose "run as administrator", so in the end I guess it was a permissions problem. Thank you all again. ;)
Alenka Dermol
4,298 PointsBrian, thanks a lot for your suggestion which helped me a lot. I had the same problem, in the end (and after reading this post) I solved it exactly the way you said - with "run as administrator". :-)
1 Answer
jason chan
31,009 PointsMake sure skype isn't turned on. If it is. Use a different port. Because skype also uses port 80.
Scott Montgomery
23,242 PointsScott Montgomery
23,242 PointsHave you tried changing the port that Apache listens on? I had a similar issue and it was because something else was using port 80. I went into Config; Apache(httpd.conf) and changed listen from 80 to 8080 and it worked. Just have to remember to go to localhost:8080 when accessing the webpage in a browser.