由于之前安装的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 |
|