Error:
2:06:22 PM [Apache] Error: Apache shutdown unexpectedly.
2:06:22 PM [Apache] This may be due to a blocked port, missing dependencies,
2:06:22 PM [Apache] improper privileges, a crash, or a shutdown by another method.
2:06:22 PM [Apache] Press the Logs button to view error logs and check
2:06:22 PM [Apache] the Windows Event Viewer for more clues
2:06:22 PM [Apache] If you need more help, copy and post this
2:06:22 PM [Apache] entire log window on the forums
This is happening, if you have installed Skype on your computer. By default Skype is using Port number 80 and localhost is also using Port number 80. This is creating issue with each other. So you have to change port number for solving this issue.
For disabling port number in Skype, follow below mention steps
- Open Skype
- Click on Tools
- Click on Options
- Click on Advanced
- Click on Connection
You will find checkbox with below mention text
Use port 80 and 443 for alternatives for incoming connections
- Disable it by clicking on checkbox
Then sign out skype and close all skype windows.
Now restart your Apache server.
If it is not working then follow below steps
- In the XAMPP Control panel, click on Config (Right hand top corner)
Here you will find Editor: this popup. We will open Apache configuration file in notepad.
Write full path of notepad or simply write notepad.exe into Editor: text box then save it.
- Click on Config by Apache and select httpd.conf (First option)
Here search Listen 80 and change it to Listen 8080
After that search ServerName localhost:80 and change it to ServerName localhost:8080
- If you are running Secure Sockets Layer (SSL), then you will need to change in to httpd-ssl.conf file:
Here search Listen 443 and change it to Listen 4433
After that search <VirtualHost _default_:443> and change it to <VirtualHost _default_:4443>
Again search ServerName www.example.com:443 and change it to ServerName localhost:4443
- Now in XAMPP control panel, Click on main config button (Right hand top corner)
Here you will find Service and Port Settings button. Click on Service and Port Settings button
Here you will find Apache Setting under Apache tab like Service name: ApacheX.X, Main port: 80, SSL: 443
Now Change the Main Port to 8080 instead of 80 and change the SSL Port 4433 instead of 443.
- Now close all configuration file of XAMPP Apache.
- And Stop and Start Apache again.
If problem is not solve then close XAMPP and re-open XAMPP.
Now open your favorite browser and type http://localhost:8080/ or Click on admin button under Apache.