Error: Apache shutdown unexpectedly in windows 8 or windows 7 – xampp/wamp server

If you are getting this error

00:06:05 [Apache] Error: Apache shutdown unexpectedly.
00:06:05 [Apache] This may be due to a blocked port, missing dependencies,
00:06:05 [Apache] improper privileges, a crash, or a shutdown by another method.
00:06:05 [Apache] Check the “/xampp/apache/logs/error.log” file
00:06:05 [Apache] and the Windows Event Viewer for more clues

follow these steps

Go to your xampp/wamp installed, search for httpd.conf.

Open that file using textpad/notepad, search for Listen or 80 ,

update listen port to 8081 and save the file.

Restart xampp/wamp, start the servers.

Done!

No images available.