Apache 服务器未从 XAMPP 控制面板运行。给出错误
Posted
技术标签:
【中文标题】Apache 服务器未从 XAMPP 控制面板运行。给出错误【英文标题】:Apache Server is not running from XAMPP Control Panel. Giving Error 【发布时间】:2014-09-09 14:07:38 【问题描述】:我已经在 Windows 7 上成功安装了 XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe)。但是很遗憾,在从 XAMPP 控制面板运行 Apache 的过程中发现如下错误:
PM 05:36:44 [Apache] Apache Service detected with wrong path
PM 05:36:44 [Apache] Change XAMPP Apache and Control Panel settings or
PM 05:36:44 [Apache] Uninstall/disable the other service manually first
PM 05:36:44 [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
PM 05:36:44 [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
【问题讨论】:
您以前安装过另一个 Apache 服务器吗?好像是这样... 是的,以前的版本我已经安装过一次了。 【参考方案1】:遇到了与上述相同的问题,确保没有任何东西在使用端口 80 并且仍然无法正常工作,并收到消息说 Apache 和 mysql 被检测到错误的路径。
我之前确实安装过一次 XAMPP,然后卸载并重新安装。我什至手动卸载了,但仍然有问题。
修复。一定要先备份你的系统!!!
Start Services via Control Panel>Admin Tools
Look for Apache and mySQL services. Look at the patch indicated in the description (right click on service then click on properties). Chances are that you have Apache listed twice, one from your correct install and one from a previous install. Even if you only see one, look at the path, chances are its from a previous install and causing your install not to work. In either case, you need to delete those incorrect services.
a. Got to command prompt (run as administrator): Start > all programs > Accessories > right click on Command Prompt > Select 'run as administrator'
b. on command prompt type sc delete service (service = the service you're wanting to delete) such as apache2.1. It should be exactly as it appears in your services. If the service has spaces such as apache 2.1 then enter it in quotes, i.e. sc delete "apache 2.1"
c. press enter. Now refresh or close/open your services window and you'll see its gone.
对 XAMPP 发现以错误路径运行的所有服务执行此操作。
完成此操作后,前往并重新启动 XAMPP 控制面板(以管理员身份),这就是 .没有冲突
【讨论】:
以上是关于Apache 服务器未从 XAMPP 控制面板运行。给出错误的主要内容,如果未能解决你的问题,请参考以下文章
无法在 XAMPP 控制面板 v3.2.4 中运行/启动 apache