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

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

    Use any method for which the server is working after that you can use this address to open the page on browser (if you've replaced the port 80 with 81 )

    http://localhost:81/phpmyadmin/
    
    0 讨论(0)
  • 2020-11-28 04:38

    Accompanying Timmay's answer, You need to do two changes-

    Listen 80 --> Listen 81 (near line 58)

    ServerName localhost:80 --> ServerName localhost:81 (near line 218)

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

    I have installed VMWare Workstation. So, It was causing the error.

    Services.msc and stopped the 'Workstation' Services.
    

    This has solved my problems.

    Thanks

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

    I also faced the same problem. And I found an easy and fast solution.

    The only thing you need to do is to run XAMPP server as administrator everytime.

    enter image description here

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

    Run these commands in terminal and everything will work fine:

    sudo /etc/init.d/apache2 stop   
    sudo /opt/lampp/lampp start
    
    0 讨论(0)
  • 2020-11-28 04:41

    i have found that similar issue on my system, and that was from skype installed before xampp installed. i got similar error. for fixing the error i followed these,

    1. logged out to skype for a while ,
    2. restarted apache from xampp control panel,
    3. checked on browser, whether it worked or not, by http://localhost/
    4. got it worked,
    5. signed in again to skype,
    6. all working great, as simple as that

    i wasn't need nothing to install or uninstall, and this worked for me in less then 1 minute.

    cheers

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