XAMPP:Apache没有在Windows 10中运行

问题描述 投票:0回答:2

我已成功在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

enter image description here

xampp
2个回答
0
投票

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

停止W3SVC服务:

  1. windows key + R并输入'services.msc'
  2. 从服务列表中查找“万维网发布服务”
  3. 停止它并再次尝试运行Apache

0
投票

我有同样的问题,你需要以管理员身份运行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,现在就可以了。

© www.soinside.com 2019 - 2024. All rights reserved.