检测到错误路径的XAMPP Apache服务

时间:2016-06-11 19:38:18

标签: php apache xampp

我读了很多关于此的问题,但我找不到解决方案。就像一个月前一样,我安装了一个名为WAMP的程序来试试。当我卸载它并尝试安装Apache时,它说路径是错误的。我尝试了一切,对不起,如果我的问题的答案太简单了,但我无法单独解决问题。以下是XAMPP在控制台中输出的内容:

Apache Service detected with wrong path
Change XAMPP Apache and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: "D:\programs\xampp 2016\apache\bin\httpd.exe" -k runservice
Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice

2 个答案:

答案 0 :(得分:0)

只需点击开始菜单 - >运行并输入“Regedit”(无引号)。然后,您需要导航到HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services [服务名称]。要更改exe的位置,只需更改ImagePath密钥。

答案 1 :(得分:0)

尝试以下步骤......

open cmd>以管理员身份运行,键入以下命令

httpd -k shutdown
httpd -k stop
httpd -k uninstall

或 open powershell>以管理员身份运行,键入以下命令

.\httpd -k shutdown
.\httpd -k stop
.\httpd -k uninstall

win + R
type services.msc
then find Apache24 or httpd
now open cmd > run as administrator
type sc delete "<your services name from the list for apache>"

感谢消息来源和贡献者:)