,

6 Steps to fix the Error: Apache shutdown unexpectedly.

Are you getting the error “Apache shutdown unexpectedly”? Well, this article will help you sort this problem and carry on with your work.

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

First, check which process is running in your port 80. try the following command in your terminal

net stop http

The above command will stop the process which is using your port 80.

If you are not interested in stopping that process and you want it to be running. Then you have to change the port for apache server. Below are the steps to change the port of apache

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. Notepad will open.

STEP #4:
Find Listen 80 and convert it to Listen 81.(or some other port number as per your wish) 

NOTE: When you try to run xampp you should use “localhost:81/dashboard/” instead of “localhost/dashboard/” 

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.

Update:

If you are using Skype, do the following steps:

Open Skype
Tools -> Options -> Advanced -> Connection
Uncheck the “Use port 80 and 443 for alternatives for incoming connections” checkbox
Sign Out and Close all Skype windows
Restart your Apache

Share

41 comments on “6 Steps to fix the Error: Apache shutdown unexpectedly.”

  1. Unwana
    April 25, 2024 at 10:59 pm

    Its not working for me dunno why..

  2. Tox
    April 25, 2024 at 9:31 am

    i tried changing to other port than 80, 81 but still the same thing

    1. April 25, 2024 at 10:17 am

      Check is there any process running in that port. Try this command “net stop HTTP”. Let me know whether it worked for you

  3. Ashutosh Garg
    April 25, 2024 at 11:22 am

    I have tried your method but it is not working

  4. Ashutosh
    April 25, 2024 at 11:21 am

    not woking..i tried your method but not working

    1. April 25, 2024 at 8:51 pm

      Check which process is running in port 80 and use the following command to stop the process using port 80.
      net stop http

      Let me know whether it worked for you

  5. Sonali Parida
    April 25, 2024 at 9:47 pm

    I did the steps, but its still showing error.

    1. April 25, 2024 at 9:37 pm

      Check which process is running in port 80 and use the following command to stop the process using port 80.
      net stop http

      Let me know whether it worked for you

    2. vinkle
      April 25, 2024 at 6:07 pm

      hi if you find the solution of above problem can you please send me on my email id vickynarula20@gmail.com

  6. Ruby Rae Olaya
    April 25, 2024 at 1:09 pm

    [Apache] Attempting to start Apache service…

    I did the steps above but I am still getting this error

    1. April 25, 2024 at 6:59 pm

      I hope the following link will help

      https://stackoverflow.com/questions/29069857/xampp-apache-could-not-start-attempting-to-start-apache-service

      Let me know whether it works for you

  7. shruti
    April 25, 2024 at 10:34 am

    its showing “Attempting to start Apache service…” bt can’t get started

  8. Rachitha
    April 25, 2024 at 6:46 am

    Stil issue is here
    I have uninstalled skype also.

    1. April 25, 2024 at 10:16 am

      Check which process is running in port 80. Use the following command to stop the process using port 80.
      net stop http

    2. Shivam Pansy
      April 25, 2024 at 8:13 pm

      So do this…. Go to click on config -> http.conf file -> now change listen:80 to listen 8080 and severname localhost to 8080. After this, Go to http-ssl.conf and change anywhere you see 443 to 4433…. Now go to your browser and type localhost:8080/ and it will run. Best of luck

  9. Suneesh SS
    April 25, 2024 at 8:22 pm

    I have installed Skype

    1. April 25, 2024 at 8:25 pm

      Open Skype
      Tools -> Options -> Advanced -> Connection
      Uncheck the “Use port 80 and 443 for alternatives for incoming connections” checkbox
      Sign Out and Close all Skype windows
      Restart your Apache

  10. Suneesh SS
    April 25, 2024 at 8:20 pm

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

    I have tried this many times, it’s not working
    I have watched so many videos on youtube but still can’t get rid of it

  11. Abdullah
    April 25, 2024 at 6:01 pm

    I stopped http through “net stop http” and tried to start Xampp Apache. But still it gives the same error.

    I do not want to change the port!!

    Please help

    1. April 25, 2024 at 7:22 pm

      Do you have skype running n your system?

  12. Ran
    April 25, 2024 at 8:56 am

    Still Can’t Start 🙁

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

    1. April 25, 2024 at 1:46 pm

      Did you check which process running in port 80? Can you try stopping it or change it to some other port other than 80?

  13. Fazil
    April 25, 2024 at 11:29 pm

    Error not remove by this method.still same error come.

    1. April 25, 2024 at 10:33 am

      Try stopping the process using “net stop http” or change the port to some other number other than 80, 81. Let me know whether it worked for you

  14. Aditi Das
    April 25, 2024 at 12:46 am

    I have tried this many times ,its not working
    I have watched so many videos on you tube but still can’t get rid of it

    1. April 25, 2024 at 10:32 am

      Try stopping the process using “net stop http” or change the port to some other number other than 80, 81. Let me know whether it worked for you

    2. Shivam Pansy
      April 25, 2024 at 8:09 pm

      I have found it. but how to reply

    3. Shivam Pansy
      April 25, 2024 at 8:13 pm

      So do this…. Go to click on config -> http.conf file -> now change listen:80 to listen 8080 and severname localhost to 8080. After this, Go to http-ssl.conf and change anywhere you see 443 to 4433…. Now go to your browser and type localhost:8080/ and it will run. Best of luck

  15. prem kumar
    April 25, 2024 at 6:41 pm

    I change what explained but still same error come’s .
    Error: Apache shutdown unexpectedly.
    6:39:15 PM [Apache] This may be due to a blocked port, missing dependencies,
    6:39:15 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    6:39:15 PM [Apache] Press the Logs button to view error logs and check
    6:39:15 PM [Apache] the Windows Event Viewer for more clues
    6:39:15 PM [Apache] If you need more help, copy and post this
    6:39:15 PM [Apache] entire log window on the forums

    1. April 25, 2024 at 10:32 am

      Try stopping the process using “net stop http” or change the port to some other number other than 80, 81. Let me know whether it worked for you

  16. April 25, 2024 at 5:33 pm

    5:02:41 PM [Apache] Status change detected: stopped

    1. April 25, 2024 at 10:31 am

      Try stopping the process using “net stop http” or change the port to some other number other than 80, 81. Let me know whether it worked for you

  17. Niesa
    April 25, 2024 at 7:16 am

    tq.

    1. April 25, 2024 at 10:31 am

      Thank you for your comment

  18. Bapathi Aparna
    April 25, 2024 at 12:21 am

    no its not working

    1. April 25, 2024 at 10:31 am

      Try stopping the process using “net stop http” or change the port to some other number other than 80, 81. Let me know whether it worked for you

  19. ALOK SRIVASTAV
    April 25, 2024 at 10:39 am

    Still not working with your logic.

    1. April 25, 2024 at 10:30 am

      Try stopping the process or change the port to some other number other than 80, 81. Let me know whether it worked for you

  20. ernest
    April 25, 2024 at 12:01 pm

    thanks this shit worked

    1. April 25, 2024 at 10:29 am

      Happy that it worked for you 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *