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

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

提交回复
热议问题