麻烦与Apache是​​XAMPP默认配置多个Apache的安装后 [英] Trouble with Apache in Xampp after multiple Apache installs

查看:185
本文介绍了麻烦与Apache是​​XAMPP默认配置多个Apache的安装后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在工作的方式,现在安装了PHP,Apache和MySQL一段时间。试图手动数次击中路障后,我最终只是试图使用XAMPP。

I've been trying to install php, apache, and mySQL in a working fashion for some time now. After attempting manually several times and hitting roadblocks, I ended up just trying to use Xampp.

然而,在启动时,程序说:

However, upon startup, the program says:

2:18:39 PM  [main]  Running with Administrator rights - good!
2:18:39 PM  [main]  XAMPP Installation Directory: "c:\xampp\"
2:18:39 PM  [main]  Checking for prerequisites
2:18:39 PM  [main]  All prerequisites found
2:18:39 PM  [main]  Initializing Modules
2:18:39 PM  [Apache]    Apache Service detected with wrong path
2:18:39 PM  [Apache]    Change XAMPP Apache and Control Panel settings or
2:18:39 PM  [Apache]    Uninstall/disable the other service manually first
2:18:39 PM  [Apache]    Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
2:18:39 PM  [Apache]    Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice

我跟着建议<一href=\"http://stackoverflow.com/questions/14284271/error-in-running-apache-services-from-xampp\">here,但

(一)更改端口收听80 听*:80 收听81 无影响。

(a) Changing the port Listen 80 to Listen *:80 or Listen 81 had no effect.

(b)使用 -ao netstat的,有80结尾没有本地地址。

(b) using netstat -ao, there were no local addresses ending with 80.

我也试着删除不是在XAMPP文件夹中,这是从previous遗留尝试安装相关的Apache,MySQL和PHP的任何文件。

I've also tried deleting any files related to apache, mysql, and php not in the xampp folder, which were left over from previous install attempts.

试过XAMPP 1.8.2,卸载,试过1.8.3,同样的问题。

Tried xampp 1.8.2, uninstalled, tried 1.8.3, same issue.

对于我能猜到,我一定是改变了一些code某处Xampp时外面之前,我安装了它,现在它当Apache运行执行,改变从什么Xampp时希望(预期路径:C:\\ XAMPP的\\ apache的\\斌\\ httpd.exe-k runservice )向现在删除的文件夹的路径 C:\\ Apache24 \\ BIN 。不过,我不吨知道这个code可能是!

For what I can guess, I must've changed some code somewhere outside Xampp before I installed it, and now it is executing when apache is run, changing the path from what Xampp wants (Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice) to a path to the now deleted folder C:\Apache24\bin. However, I don"t know where this code might be!

我试图寻找我的整个C盘为C:\\ Apache24 \\ BIN,但搜索空手而归。

I tried searching my whole C drive for C:\Apache24\bin, but the search came up empty.

机:Windows 7的64位

Machine: Windows 7 64 bit

previously安装/卸载:的Apache2.2,Apache2.4,php5.5.4,MySQL的使用MySQL安装5.6

Previously installed/uninstalled: Apache2.2, Apache2.4, php5.5.4, MySQL using MySQL Installer 5.6

对于Windows试图XAMPP 1.8.2

tried xampp for windows 1.8.2

XAMPP的Windows版1.8.3当前安装的。

xampp for windows 1.8.3 currently installed.

任何帮助吗?

推荐答案

之所以出现此错误是因为你曾经之前安装Apache和它的服务仍在运行。

The reason to get this error is because you had Apache installed once before and its service is still running.

如果您使用的是Windows 7,单击开始,然后键入sercives。开放服务,看看是否Apache是​​上市。
如果是,双击它,看看它的属性。通过选择复制服务名称(例如Apache的2.4) - >右键 - >选择复制

If you are using windows 7, click on start and type "sercives". Open Services and see if Apache is listed. If yes, double click on it to see its properties. Copy the service name (e.g Apache 2.4) by selecting it -> right click -> selecting Copy.

关闭服务窗口。

点击开始并通过键入找到 CMD 。右击CMD.EXE,选择以管理员身份运行。

Click on start and find cmd by typing it. Right click on cmd.exe and select "Run as administrator".

在cmd窗口已经打开键入此命令和preSS输入:

When the cmd window has opened type this command and press Enter:

请注意:不是的Apache 2.4的你应该右键单击窗口中,选择粘贴

note: instead of Apache 2.4 you should right click on the window to select paste

sc delete "Apache 2.4"

在pressing进入你应该得到的消息: serviceDelete成功

After pressing enter you should get the message: serviceDelete Success

再次打开窗户服务(我解释上面),看看是否有阿帕奇那里了还是不行。

Open services windows again (I explained it above) and see if you have Apache there again or not.

这篇关于麻烦与Apache是​​XAMPP默认配置多个Apache的安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆