XAMPP:Apache未在windows 10中运行

XAMPP:Apache未在windows 10中运行,xampp,Xampp,我已经在windows 10上成功安装了XAMPP,但Apache服务器不工作。它显示错误: 19:35:48 [Apache] Apache Service detected with wrong path 19:35:48 [Apache] Change XAMPP Apache and Control Panel settings or 19:35:48 [Apache] Uninstall/disable the other service manually first 19

我已经在windows 10上成功安装了XAMPP,但Apache服务器不工作。它显示错误:

19:35:48  [Apache]  Apache Service detected with wrong path
19:35:48  [Apache]  Change XAMPP Apache and Control Panel settings or
19:35:48  [Apache]  Uninstall/disable the other service manually first
19:35:48  [Apache]  Found Path: "C:\wamp\bin\apache\apache2.4.23\bin\httpd.exe" -k runservice
19:35:48  [Apache]  Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice

Apache尝试使用端口80。但W3SVC服务使用此端口。所以您只需停止W3SVC服务或更改Apache端口

对于停止W3SVC服务:

  • windows key+R并键入“services.msc”
  • 从服务列表“万维网发布服务”中查找
  • 停止它,然后再次尝试运行Apache

  • 我有同样的问题,你需要以管理员的身份运行cmd

    请按照以下步骤操作:

    On search write cmd it will appear right click and select run as administrator.
    
    Now it will open the windows command line and write this:
    
    net stop http
    
    write S to select yes
    

    重新启动xampp,它现在就可以工作了

    试试下面的方法

    选择“以管理员身份运行”

    单击Apache旁边的左按钮

    单击卸载

    这对我很有用,希望这对我有帮助