Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

前端 未结 27 1811
不知归路
不知归路 2020-11-28 04:16

I have installed XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe) on Windows 7 successfully. But unfortunately, the following error was found during running Apache from XAMPP C

相关标签:
27条回答
  • 2020-11-28 04:34

    Have you executed "setup_xampp.bat" script? It's inside XAMPP folder and it must be executed every time you change XAMPP folder.

    0 讨论(0)
  • 2020-11-28 04:35

    Check if you have Skype installed on your machine.

    Login and go to Tools - Options - Advanced - Connection and uncheck the box which says use port 80

    --

    Check if Apache service is already installed by firing up services.msc from run command prompt.

    How to delete a service from command prompt? sc delete “serviceName”

    Remember serviceName should be replaced by exact name of the Apache service as shown is services list.

    Check if IIS is running and taking up port 80. If so, disable it.

    --

    Check if AVP (Kaspersky) is running and taking up port 80. If so add httpd.exe as an exception to allowed programs.

    --

    Hope it helps.

    0 讨论(0)
  • 2020-11-28 04:35

    go to C:xampp\apache\conf\extra\httpd-ssl.conf
    Find the line where it says Listen 443, change it to Listen 4330 and restart your computer

    [![enter image description here][2]][2]

    0 讨论(0)
  • 2020-11-28 04:35

    The Best way to do so:

    The other methods explained above will get you stuck at a lot of places Don't go for changing the port

    2 Step Process

    1) Open Command Prompt as Administrator

    2) type net stop http (If it says it doesn't identify the keyword, then it is only because your Environmental Variable's PATH doesn't contain path to Program Files/System32 you can search on how to do it ) press Y at every place it asks you to, don't worry you are not stopping any important process just some process which took your port. And that process will again take over your port once you are not working.

    0 讨论(0)
  • 2020-11-28 04:37

    In my case the problem was that both port 80 and 443 were in use: Steps to use to fix it are :

    1. Open xampp and click on config button
    2. Now click on ( Appache )httpd.conf (Open in notepad or other editor)
    3. Now click ctrl + h.
    4. Find 80 and replace with 8080
    5. Now save and now click on Appache(httpd-ssl.conf).
    6. Now find 443 and replace with 4430.
    7. Now your xampp must be working fine as both these code are never in use by other programs on your system.

    Now your localhost will be available as localhost:8080

    0 讨论(0)
  • 2020-11-28 04:37

    Had the same problem and none of the above solutions worked. So, by reading carefully the logs, I found this message :

    10:55:42 [Apache] Port 443 in use by ""C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 1908!

    In my case, I had just to stop the VMWare service which was running automatically.

    The key is to read carefully the message given by XAMPP Panel when started.

    Hope this help!

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