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
Isaac Montgomery
2,059 PointsXampp for windows
I installed Xampp on my windows 8.1 computer, restarted my computer, and tried to run xampp but could not open apache. Said this: 10:22:43 AM [Apache] Problem detected! 10:22:43 AM [Apache] Port 80 in use by "Unable to open process" with PID 4! 10:22:43 AM [Apache] Apache WILL NOT start without the configured ports free! 10:22:43 AM [Apache] You need to uninstall/disable/reconfigure the blocking application 10:22:43 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port,
Then said this: 10:24:04 AM [Apache] Error: Apache shutdown unexpectedly. 10:24:04 AM [Apache] This may be due to a blocked port, missing dependencies, 10:24:04 AM [Apache] improper privileges, a crash, or a shutdown by another method. 10:24:04 AM [Apache] Press the Logs button to view error logs and check 10:24:04 AM [Apache] the Windows Event Viewer for more clues 10:24:04 AM [Apache] If you need more help, copy and post this 10:24:04 AM [Apache] entire log window on the forums
tried everything, please help. Is there an alternative program?
4 Answers
Kevin Korte
28,149 PointsDo you have skype open? I believe Xampp and Skype fight over port 80, which may explain this. I don't use skype so I haven't been exactly through this. But if you confirm that skype was using port 80, you can change what port Apache listens on in one of the config files. I'm certain if you google Change Xampp apache default port you'll find a stackoverflow thread that will answer where, and how to do it.
Isaac Montgomery
2,059 PointsThank you, I do not have skype, so I do not know why it is doing this. I will try to google how to Change Xampp apache default port.
Kevin Korte
28,149 PointsHere are two threads you might find helpful
http://stackoverflow.com/questions/1960750/how-to-find-which-program-is-using-port-80-in-windows
specifically
Only one process can use port 80 at a time. Port 80 is the default port for web servers, so when you navigate to websites over HTTP, you are actually navigating to that server's port 80 by default (when you use HTTPS, the port is 443).
You can try to hunt down all the programs that are running on port 80, but there's an easier way that will work for development. When running XAMPP, click "Config" under "Apache". Replace Listen 80 with Listen 8080 and ServerName localhost:80 to ServerName localhost:8080.
Then, when you want to look at your masterpiece, navigate to http://localhost:8080 in your browser.
Isaac Montgomery
2,059 PointsThank you very much! It works like a dream! :-)
Denlyn Blake
989 Pointsthanks so much Kevin, I shutting down Skype fixed it.
Kevin Korte
28,149 PointsAwesome you're welcome.
Sean Clipsham
1,664 PointsSean Clipsham
1,664 PointsMine, with same problem, says port 443 (https) is in use and causing the problem.