Php XAMPP Apache服务已停止

Php XAMPP Apache服务已停止,php,apache,xampp,Php,Apache,Xampp,我无法运行Apache并从XAMPP控制面板中获得以下错误。发生这种情况时,我必须重新安装Windows。。。不确定,但我假设。我已经从D驱动器安装了XAMPP 5:34:35 AM [Apache] Error: Apache shutdown unexpectedly. 5:34:35 AM [Apache] This may be due to a blocked port, missing dependencies, 5:34:35 AM [Apache] im

我无法运行Apache并从XAMPP控制面板中获得以下错误。发生这种情况时,我必须重新安装Windows。。。不确定,但我假设。我已经从D驱动器安装了XAMPP

5:34:35 AM  [Apache]    Error: Apache shutdown unexpectedly.
5:34:35 AM  [Apache]    This may be due to a blocked port, missing dependencies, 
5:34:35 AM  [Apache]    improper privileges, a crash, or a shutdown by another method.
5:34:35 AM  [Apache]    Press the Logs button to view error logs and check
5:34:35 AM  [Apache]    the Windows Event Viewer for more clues
5:34:35 AM  [Apache]    If you need more help, copy and post this
5:34:35 AM  [Apache]    entire log window on the forums
注意:在此之前,我已经读过这个问题,但没有运气


如何修复Apache错误?

当我遇到此类问题时,我通常会做/检查这些事情:

  • 禁用Windows防火墙
  • 删除使用端口80的应用程序或将其端口更改为80以外的其他端口(另一个Apache安装、wamp、Skype等)
  • 以管理员身份启动xampp(右键单击桌面>以管理员身份运行中的xampp图标)
  • 我用于故障排除的一些命令:
    netstat
    telnet
  • 有关详细信息,请阅读Windows事件查看器(转到Windows并键入
    eventvwr.exe
    ENTER
  • 您还可以将xampp的端口更改为
    81
    8080