Apache shutdown unexpectedly

前端 未结 17 1797
[愿得一人]
[愿得一人] 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:55

    You can disable port 80 and 443 as alternative incoming connections in Skype settings - Advanced settings - Connection.


    (source: ctrlv.in)

    0 讨论(0)
  • 2020-12-13 20:59

    If you are using the latest Skype, go to:

    Tools -> Options -> Advanced -> connection.

    Disable the 'Use port 80 and 443 for alternatve.. '
    Sign Out and Close all Skype windows. Try restart your Apache again.

    0 讨论(0)
  • 2020-12-13 21:00

    In my situation I had moved the htdocs to a new location updated in httpd.conf, which worked fine. I then received the same error after updating the httpd-vhost.conf file.

    I found that the error was caused by a typo in the vhost configuration file. Previously I changed all "DocumentRoot" ’s to the new htdocs location, but had forgot to update the new location for "ErrorLog". After correcting the missing path, Apache was running smooth again.

    0 讨论(0)
  • 2020-12-13 21:02

    On your XAMPP control panel, next to apache, select the "Config" option and select the first file (httpd.conf):

    there, look for the "listen" line (you may use the find tool in the notepad) and there must be a line stating "Listen 80". Note: there are other lines with "listen" on them but they should be commented (start with a #), the one you need to change is the one saying exactly "listen 80". Now change it to "Listen 1337".

    Start apache now.

    If the error subsists, it's because there's another port that's already in use. So, select the config option again (next to apache in your xampp control panel) and select the second option this time (httpd-ssl.conf):

    there, look for the line "Listen 443" and change it to "Listen 7331".

    Start apache, it should be working now.

    0 讨论(0)
  • 2020-12-13 21:04

    It means port 80 is already used by another one.

    Simply follow these steps:

    1. Open windows -> click on Run (win + R) -> type services.msc
    2. Goto IIS Admin -> Right click on it and click on Stop Option.
    3. Open XAMPP click on Start Action of Apache Module, Apache Module is run.

    OR

    For find the port of Apache (80) in Command Prompt simply type netstat -aon it displays present used ports on windows, under Local Address column it shown as 0.0.0.0:80. If it displays this port another connection is already used this port number.

    Active Connections in Windows XP:

    Active Connections in Windows XP

    I solved my problem after installing xampp-win32-1.6.5-installer previously I used xampp version xampp-win32-1.8.2-0-VC9-installer at that time I got this error. Now it resolved my problem.

    0 讨论(0)
提交回复
热议问题