Apache服务器未从XAMPP控制面板运行。给出错误

时间:2014-07-18 12:22:40

标签: apache xampp

我已成功在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

1 个答案:

答案 0 :(得分:0)

如上所述存在同样的问题,请确保没有使用端口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控制面板(以管理员身份)和那个。没有冲突