码迷,mamicode.com
首页 > Web开发 > 详细

xampp重新安装时提示httpd路径错误

时间:2017-05-12 22:12:25      阅读:776      评论:0      收藏:0      [点我收藏+]

标签:settings   解决方案   service   注册表   

由于之前安装的xampp版本比较低,卸载后下载了新版本xampp重新安装,安装后启动xampp提示如下:

Apache Service detected with wrongpath.Change XAMPP Apache and Control Panel settings orUninstall/disable theother service manually first

Found Path: "D:\programfiles\xampp\apache\bin\httpd.exe" -k runservice

Expected Path: "d:\txampp\apache\bin\httpd.exe"-k runservice

这是因为启动路径出现了错误,Found Path: "D:\programfiles\xampp\apache\bin\httpd.exe" -k runservice这个是以前老版本安装的路径,"d:\txampp\apache\bin\httpd.exe"-k runservice这个才是现在安装的路径。

解决方案:   

首先,进入自己的注册表:win+R打开运行对话框;

然后,输入regedit回车,进入注册表--->点击HKEY_LOCAL_MACHINE---->SYSTEM---->currentControlSet---->Services---->找到Apache2.4,你就会在右边看到ImagePath,这时候的路径是以前那个版本的路径,选中ImagePath点击右键修改,把xampp里面提示的Expected Path后面的路径粘贴进去,然后确定,如下图所示:

技术分享


最后,重启xampp就可以了。


洋哥学习的主页:http://edu.51cto.com/lecturer/index/user_id-5811414.html

本文出自 “昊洋_栖息处” 博客,请务必保留此出处http://zdytesting.blog.51cto.com/5811414/1925145

xampp重新安装时提示httpd路径错误

标签:settings   解决方案   service   注册表   

原文地址:http://zdytesting.blog.51cto.com/5811414/1925145

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!