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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Brian Morrison](https://uploads.teamtreehouse.com/production/profile-photos/4387812/micro_FB_IMG_1450646712067-1.jpg)
Brian 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](https://uploads.teamtreehouse.com/production/profile-photos/4387812/micro_FB_IMG_1450646712067-1.jpg)
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](https://uploads.teamtreehouse.com/production/profile-photos/4387812/micro_FB_IMG_1450646712067-1.jpg)
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](https://secure.gravatar.com/avatar/1d7fcc866a9769b94eeed8e0273062b9?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
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](https://uploads.teamtreehouse.com/production/profile-photos/3328982/micro_myself.jpg)
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.