Friday, 16 January 2015

6 Steps to fix the Error: Apache shutdown unexpectedly.


When I started Apache on XAMPP, it will run then stop and displayed an error message i.e. "Apache shutdown unexpectedly".


PM 04:22:16  [Apache] Attempting to start Apache app...
PM 04:22:18  [Apache] Status change detected: running
PM 04:22:20  [Apache] Status change detected: stopped
PM 04:22:20  [Apache] Error: Apache shutdown unexpectedly.
PM 04:22:20  [Apache] This may be due to a blocked port, missing dependencies,
PM 04:22:20  [Apache] improper privileges, a crash, or a shutdown by another method.
PM 04:22:20  [Apache] Press the Logs button to view error logs and check
PM 04:22:20  [Apache] the Windows Event Viewer for more clues
PM 04:22:20  [Apache] If you need more help, copy and post this
PM 04:22:20  [Apache] entire log window on the forums
Now, if you are having this problem, do the following steps.

STEP #1: 
Open the XAMPP Control Panel as administrator.

STEP #2:
In the XAMPP Control Panel, Left click on the Config button corresponding to Apache


STEP #3:
Select ‘Apache (httpd.conf)’ from the drop down menu. A notepad will open.
STEP #4:
Find Listen 80 and convert it to Listen 81.(or some other port number as per you wish)

NOTE:When you try to run xampp you should use "localhost:81/xampp/" instead of "localhost/xampp/" 
STEP #5:
Find ServerName localhost:80 to ServerName localhost:81
STEP #6:
Save the notepad. Be sure that you can save the notepad file only if you open the XAMPP control panel as an Administrator. Now, start the Apache. It will run now.
If you have any problem regarding this, mention it in comments. I will try to solve your problem.

About the Author

Unknown

Author & Editor

Hi Friends, I am Kayalvizhi doing Computer science engineering in Madurai. My hobbies are browsing, reading books and playing puzzles. I love programming. Read more

No comments:

Post a Comment

 
KayalSpot © 2015 - Designed by Templateism.com