【问题标题】:XAMPP Apache Service detected with wrong pathXAMPP Apache 服务检测到错误的路径
【发布时间】:2016-06-11 19:38:18
【问题描述】:

我阅读了很多关于此的问题,但我找不到解决方案。就像一个月前一样,我安装了一个名为 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

【问题讨论】:

  • 清理了格式、标签、标题。

标签: php apache xampp


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    尝试以下步骤....

    打开 cmd > 以管理员身份运行输入以下命令

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

    或 打开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>"
    

    感谢来源和贡献者:)

    【讨论】:

      猜你喜欢
      • 2015-08-13
      • 2018-06-20
      • 1970-01-01
      • 2014-09-28
      • 2017-12-30
      • 1970-01-01
      • 2013-03-21
      • 2012-08-15
      • 2015-03-13
      相关资源
      最近更新 更多