Thursday, August 7, 2014

Can not start Apache in XAMPP?

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

Solution-->

1. If you are using Skype, go to Tools -> Options -> Advanced -> connection. Disable the "Use port 80 and 443 for alternatives for incoming connections". Sign Out and Close all Skype windows. Try restart your Apache again.

2.

  • open your xampp control panel then click its "config"
  • choose the "Apache (httpd.conf)". Find this code below and change it into this one:

#Change this to Listen on specific IP addresses as shown below
#to prevent Apache from glomming onto all bound IP addresses.
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
# Dynamic Shared Object (DSO) Support
  • save it (ctrl + s)
  • after that, go back to xampp control panel and click again its config
  • choose "Apache (httpd-ssl.conf)" find this code below and change it again:
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
# Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
#Listen 0.0.0.0:443
#Listen [::]:443
  • save it (ctrl + s)
  • then, click the "config" (note: above the netstat) and click the "service and port settings" then save both of it.
  • finally, go to the "control panel" -> "Programs & Features" -> "Turn Windows On or Off".
  • Uncheck your "Internet Information Services" then click ok.

3. If you have VMWare installed on your PC. In VMWare go to Edit>Preference>Shared VMs and Disable Sharing.

WORKED FOR ME :)