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

前端 未结 27 1831
不知归路
不知归路 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:53

    If you are installed Skype, Please check this option.

    Another case is Windows 10

    Check this:

    1. Go to Start, type in services.msc
    2. Scroll down in the Services window to find the World Wide Web Publishing Service.
    3. Right-click on it, and select Stop or Disable it if you just want to use XAMPP only.

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

    If you face this issue directly after a complete new installation on Windows:

    It seems like the setup program already starts the http.exe process and blocks the initial port 80 but does not reflect this state in the control panel.

    To verify, just test for a running server in your browser. Type into your browser address bar:

    localhost

    If this displays the XAMPP dashboard, you're fine. Alternatively, check the Task Manager for a running 'Apache HTTP Server' (httpd.exe) process.

    You could stop the apache process with the xampp_stop.exe in your xampp base folder. Then, the XAMPP control panel should work as expected.

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

    1. Go in xampp/apache/conf/httpd.conf and open it.
    In the httpd.conf file at line 176 Replace

    ServerName localhost:80
    with
    ServerName localhost:81
    It will work.

    Or 2. Even if the above procedure doesn't work. Then in the same file (httpd.conf) at line 45 replace

       #Listen 0.0.0.0:80
       #Listen [::]:80
       Listen 80 
    

    with

      #Listen 0.0.0.0:81
      #Listen [::]:81
      Listen 81
    
    0 讨论(0)
提交回复
热议问题