Apache shutdown unexpectedly

前端 未结 17 1836
[愿得一人]
[愿得一人] 2020-12-13 20:27

I am using XAMPPS to host PHP files from my machine. I have recently installed XAMPPs but I am unable to start Apache service as port 80 is in use by PID 4 - NT Kernel &

17条回答
  •  青春惊慌失措
    2020-12-13 20:52

    Follow these:

    1. open your xampp control panel then click its "config"
    2. choose the "Apache (httpd.conf)" and 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
      
    3. save it (ctrl + s)

    4. after that, go back to xampp control panel and click again its config

    5. 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
      Listen 443
      
    6. save it (ctrl + s)

    7. then, click the "config" (note: above the netstat) and click the "service and port settings" then save both of it.

    8. finally, go to the "control panel" -> "Programs & Features" -> "Turn Windows On or Off".

    9. Uncheck your "Internet Information Services" then click ok.

    Just wait for it and your computer/laptop will be automatically restart and try to open again your xampp control panel then start your Apache.

提交回复
热议问题