天天看点

安装XAMPP后,报错apache无法启动:Apache Service detected with wrong path

安装XAMPP后,报错apache无法启动:Apache Service detected with wrong path

步骤

打开高级系统设置

检查环境变量的 path 中是否还残留以前自己添加的 xampp 路径,有就删掉

进入注册表检查

  1. Win + R 输入 regedit 回车,进入注册表
  2. 点击 HKEY_LOCAL_MACHINE---->SYSTEM---->currentControlSet---->Services---->
  3. 在Services下面找到 Apache2.4
  4. 点击 Apache2.4,在右边找到ImagePath ,看里面的路径是不是XAMPP里面期望的路径
  5. 如果不是就右键点击ImagePath ,选择 修改,把里面的路径换成XAMPP里期望的路径

    (就是图中第3行,Expected Path)里面的路径

继续阅读